View Source AshAuthentication.Strategy.OAuth2.Plug (ash_authentication v3.7.4)

Handlers for incoming OAuth2 HTTP requests.

Link to this section Summary

Functions

Perform the callback phase of OAuth2.

Perform the request phase of OAuth2.

Link to this section 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.