PowAssent v0.4.8 PowAssent.Phoenix.ReauthorizationPlugHandler View Source
Used with PowAssent.Plug.Reauthorization
.
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
Link to this function
clear_reauthorization?(conn, config)
View Sourceclear_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)
.
Link to this function
reauthorize(conn, provider, config)
View Sourcereauthorize(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.
Link to this function
reauthorize?(conn, config)
View Sourcereauthorize?(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
.