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

Handlers for incoming OAuth2 HTTP requests.

Summary

Functions

Perform the callback phase of OAuth2.

Perform the request phase of OAuth2.

Functions

callback(conn, strategy)

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.

request(conn, strategy)

Perform the request phase of OAuth2.

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