Comrade::Providers::OAuth2Provider
Inherits Comrade::Providers::BaseProvider < Reference < Object
Base implementation for OAuth 2.0 providers
Instance methods
authorization_url
Sourceget_token(code : String, state : String | Nil = nil, code_verifier : String | Nil = nil, **options) : Token
Exchange authorization code for access token
redirect(scopes : Array(String) = [] of String, state : String | Nil = nil, code_verifier : String | Nil = nil, **options) : String
Generate authorization URL
Revoke access token (optional - providers may not support this)
token_url
SourceGet access token information
Get user information directly from authorization code
user_url
Source