AshAuthentication.Strategy.Google (ash_authentication v5.0.0-rc.0)

View Source

Strategy for authenticating using Google

This strategy builds on-top of AshAuthentication.Strategy.Oidc and assent.

In order to use Google you need to provide the following minimum configuration:

  • client_id
  • redirect_uri
  • client_secret

As of Assent v0.3.0, the Google strategy uses OpenID Connect (OIDC) and automatically retrieves configuration (token URL, user info URL, etc.) from Google's discovery endpoint.

More documentation:

Summary

Functions

transform(entity, dsl_state)

Callback implementation for AshAuthentication.Strategy.Custom.transform/2.

verify(strategy, dsl_state)

Callback implementation for AshAuthentication.Strategy.Custom.verify/2.