View Source AshAuthentication.Strategy.OAuth2.Plug (ash_authentication v4.3.1)
Handlers for incoming OAuth2 HTTP requests.
Summary
Functions
@spec callback(Plug.Conn.t(), AshAuthentication.Strategy.OAuth2.t()) :: Plug.Conn.t()
Perform the callback phase of OAuth2.
Responds to a user being redirected back from the remote authentication provider, and validates the passed options, ultimately registering or signing-in a user if the authentication was successful.
@spec request(Plug.Conn.t(), AshAuthentication.Strategy.OAuth2.t()) :: Plug.Conn.t()
Perform the request phase of OAuth2.
Builds a redirection URL based on the provider configuration and redirects the user to that endpoint.