View Source Boruta.Openid.DirectPostApplication behaviour (Boruta core v3.0.0-beta.1)

Implement this behaviour in the application layer of your OpenID SiopV2 provider. This behaviour gives all callbacks triggered invoking Boruta.Openid.direct_post/3 function.

Summary

Callbacks

Link to this callback

authentication_failure(conn, error)

View Source
@callback authentication_failure(conn :: Plug.Conn.t(), error :: Boruta.Oauth.Error.t()) ::
  any()
@callback code_not_found(conn :: Plug.Conn.t()) :: any()
Link to this callback

direct_post_success(conn, response)

View Source
@callback direct_post_success(
  conn :: Plug.Conn.t() | map(),
  response :: any()
) :: any()