OneAuth.Plug.RequireAuth (OneAuth v0.1.0)

Copy Markdown View Source

Requires an authenticated OneAuth session.

This plug expects OneAuth.Plug.LoadSession to run before it.

Unauthenticated requests are redirected to the configured login path with the original request path preserved for redirecting after login.