View Source Boruta.Openid.UserinfoApplication behaviour (Boruta core v2.3.3)
Implement this behaviour in the application layer of your OpenID Connect provider.
This behaviour gives all callbacks triggered invoking Boruta.Openid.userinfo/2
function.
Summary
Callbacks
This function will be triggered when request is unauthorized invoking Boruta.Openid.userinfo/2
This function will be triggered in case of success invoking Boruta.Openid.userinfo/2
Callbacks
@callback unauthorized(conn :: Plug.Conn.t(), error :: Boruta.Oauth.Error.t()) :: any()
This function will be triggered when request is unauthorized invoking Boruta.Openid.userinfo/2
@callback userinfo_fetched(conn :: Plug.Conn.t(), userinfo :: map()) :: any()
This function will be triggered in case of success invoking Boruta.Openid.userinfo/2