Backplane.Oauth.Openid.UserinfoApplication behaviour (backplane_oauth v1.10.77)

Copy Markdown View Source

Implement this behaviour in the application layer of your OpenID Connect provider. This behaviour gives all callbacks triggered invoking Backplane.Oauth.Openid.userinfo/2 function.

Summary

Callbacks

This function will be triggered when request is unauthorized invoking Backplane.Oauth.Openid.userinfo/2

This function will be triggered in case of success invoking Backplane.Oauth.Openid.userinfo/2

Callbacks

unauthorized(conn, error)

@callback unauthorized(conn :: Plug.Conn.t(), error :: Backplane.Oauth.Error.t()) :: any()

This function will be triggered when request is unauthorized invoking Backplane.Oauth.Openid.userinfo/2

userinfo_fetched(conn, userinfo)

@callback userinfo_fetched(conn :: Plug.Conn.t(), userinfo :: map()) :: any()

This function will be triggered in case of success invoking Backplane.Oauth.Openid.userinfo/2