DigitalOcean OAuth 2.0 strategy.
Usage
config = [
client_id: "REPLACE_WITH_CLIENT_ID",
client_secret: "REPLACE_WITH_CLIENT_SECRET",
redirect_uri: "http://localhost:4000/auth/callback"
]See Assent.Strategy.OAuth2 for more.
Summary
Functions
Generates an OAuth 2.0 authorization URL.
Handles an OAuth 2.0 callback.
Fetches user data using the access token returned by the provider.
Functions
@spec authorize_url(Keyword.t()) :: Assent.Strategy.OAuth2.on_authorize_url()
Generates an OAuth 2.0 authorization URL.
@spec callback(Keyword.t(), map()) :: Assent.Strategy.OAuth2.on_callback()
Handles an OAuth 2.0 callback.
Fetches user data using the access token returned by the provider.