Boruta.Oauth.PushedAuthorizationRequestApplication behaviour (Boruta core v3.0.0-beta.4)

View Source

OAuth application behaviour - pushed authorization endpoint

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

Summary

Callbacks

This function will be triggered in case of failure invoking Boruta.Oauth.pushed_authorization_request/2

This function will be triggered in case of success invoking Boruta.Oauth.pushed_authorization_request/2

Callbacks

pushed_authorization_error(conn, error)

@callback pushed_authorization_error(
  conn :: Plug.Conn.t(),
  error :: Boruta.Oauth.Error.t()
) :: any()

This function will be triggered in case of failure invoking Boruta.Oauth.pushed_authorization_request/2

request_stored(conn, response)

@callback request_stored(
  conn :: Plug.Conn.t(),
  response :: Boruta.Oauth.PushedAuthorizationResponse.t()
) :: any()

This function will be triggered in case of success invoking Boruta.Oauth.pushed_authorization_request/2