View Source Boruta.Openid.CredentialApplication behaviour (Boruta core v3.0.0-beta.2)
Implement this behaviour in the application layer of your OpenID Connect provider.
This behaviour gives all callbacks triggered invoking Boruta.Openid.credential/3
function.
Summary
Callbacks
This function will be triggered in case of success invoking Boruta.Openid.credential/3
This function will be triggered in case of failure invoking Boruta.Openid.credential/3
Callbacks
@callback credential_created( conn :: Plug.Conn.t(), credential :: Boruta.Openid.CredentialResponse.t() | Boruta.Openid.DeferedCredentialResponse.t() ) :: any()
This function will be triggered in case of success invoking Boruta.Openid.credential/3
@callback credential_failure(conn :: Plug.Conn.t(), error :: Boruta.Oauth.Error.t()) :: any()
This function will be triggered in case of failure invoking Boruta.Openid.credential/3