Comrade::ProviderConfig
Configuration for OAuth providers
Constructors
from_env(name : String, client_id_env : String, client_secret_env : String | Nil = nil, redirect_uri : String = "", scopes : Array(String) = [] of String) : ProviderConfig
Create config from environment variables
Example: config = ProviderConfig.from_env("github", "GITHUB_CLIENT_ID", "GITHUB_CLIENT_SECRET")
Create config from hash (useful for loading from files)
Instance methods
additional_params
Sourceclient_id
Sourceclient_secret
Sourcename
Sourceredirect_uri
Sourcescopes
Source