Backplane.Oauth.RevokeApplication behaviour (backplane_oauth v1.10.77)

Copy Markdown View Source

OAuth application behaviour - revoke endpoint

Implement this behaviour in the application layer of your OAuth provider. The callbacks are triggered while calling functions from Backplane.Oauth module.

Summary

Callbacks

This function will be triggered in case of failure invoking Backplane.Oauth.revoke/2

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

Callbacks

revoke_error(conn, oauth_error)

@callback revoke_error(conn :: Plug.Conn.t(), oauth_error :: Backplane.Oauth.Error.t()) ::
  any()

This function will be triggered in case of failure invoking Backplane.Oauth.revoke/2

revoke_success(conn)

@callback revoke_success(conn :: Plug.Conn.t()) :: any()

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