View Source PowAssent.Phoenix.ReauthorizationPlugHandler (PowAssent v0.4.18)

Used with PowAssent.Plug.Reauthorization.

Example

plug PowAssent.Plug.Reauthorization,

handler: PowAssent.Phoenix.ReauthorizationPlugHandler

Summary

Functions

Checks if the reauthorization should be cleared.

Reauthorize callback.

Checks if the user should be reauthorized.

Functions

Link to this function

clear_reauthorization?(conn, config)

View Source
@spec clear_reauthorization?(Plug.Conn.t(), Pow.Config.t()) :: boolean()

Checks if the reauthorization should be cleared.

Returns true when the request path matches delete session route.

Link to this function

reauthorize(conn, provider, config)

View Source
@spec 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.

Link to this function

reauthorize?(conn, config)

View Source
@spec 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.