View Source AshAuthentication.Strategy.OAuth2.Plug (ash_authentication v4.0.0)

Handlers for incoming OAuth2 HTTP requests.

Summary

Functions

Perform the callback phase of OAuth2.

Perform the request phase of OAuth2.

Functions

Link to this function

callback(conn, strategy)

View Source

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.

Perform the request phase of OAuth2.

Builds a redirection URL based on the provider configuration and redirects the user to that endpoint.