UeberauthOidcc.Callback (Ueberauth OIDCC v0.3.3)

Support implementation of Ueberauth.Strategy.handle_callback!/1

Summary

Functions

Link to this function

handle_callback(opts, conn)

@spec handle_callback(UeberauthOidcc.Config.t(), Plug.Conn.t()) ::
  {:ok, Plug.Conn.t(), Oidcc.Token.t(), userinfo :: :oidcc_jwt_util.claims()}
  | {:error, Plug.Conn.t(), term()}

Support implementation of Ueberauth.Strategy.handle_callback!/1

Takes options and the Plug.Conn.t(), and returns either an updated Plug.Conn.t(), a token and the userinfo claims, or an error (and the updated conn).

See UeberauthOidcc.Error.set_described_error/3 for help with rendering the error.