View Source PowAssent.Phoenix.ReauthorizationPlugHandler (PowAssent v0.4.13)
Used with PowAssent.Plug.Reauthorization
.
example
Example
plug PowAssent.Plug.Reauthorization,
handler: PowAssent.Phoenix.ReauthorizationPlugHandler
Link to this section Summary
Functions
Checks if the reauthorization should be cleared.
Reauthorize callback.
Checks if the user should be reauthorized.
Link to this section Functions
Specs
clear_reauthorization?(Plug.Conn.t(), Pow.Config.t()) :: boolean()
Checks if the reauthorization should be cleared.
Returns true when the request path matches
Routes.pow_session_path(conn, :delete)
.
Specs
reauthorize(Plug.Conn.t(), binary(), Pow.Config.t()) :: Plug.Conn.t()
Reauthorize callback.
Redirects the user to the authorization path where they will be redirected to
the provider. The request_path
is automatically appended to uri query if
found in params.
See PowAssent.Plug.Reauthorization
for more.
Specs
reauthorize?(Plug.Conn.t(), Pow.Config.t()) :: boolean()
Checks if the user should be reauthorized.
Returns true when the request path matches
Pow.Phoenix.Routes.user_not_authenticated_path/1
.