Boruta.Openid.DirectPostApplication behaviour (Boruta core v3.0.0-beta.4)

View Source

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

authentication_failure(conn, error)

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

code_not_found(conn)

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

direct_post_success(conn, response)

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