Database

.

First, if you follow the Authentication tutorial's example, you have a database like the following.

authentication:
    realms:
      default:
        credential:
          class: Password
          password_field: password
          password_type: clear
        store:
          class: DBIx::Class
          user_class: DB::User
          id_field: id
          role_relation: roles
          role_field: role