amelinium.proto.auth

added in 1.0.0

amelinium service, authentication protocol.

Authenticable

protocol

This protocol is used to access authentication settings and configuration.

members

config

(config settings-src)(config settings-src account-type)

Returns an authentication configuration of type AuthConfig on a basis of configuration source settings-src and account-type provided.

db

(db settings-src)(db settings-src account-type)

Returns a database connection object on a basis of configuration source settings-src and optional account-type provided.

settings

(settings settings-src)

Returns a global authentication settings of type AuthSettings on a basis of configuration source provided.

Authorizable

protocol

Authorizable protocol is to support class-based, single method dispatch when dealing with authorization and authentication data. The auth-source can be a data source, an AuthConfig record, or a global AuthSettings record.

members

get-user-auth-data

(get-user-auth-data auth-source email queries)(get-user-auth-data auth-source email account-type queries)