Crabbit::OAuth2Config
OAuth 2 client-credentials and refresh settings.
The token endpoint must use HTTPS unless allow_insecure_transport is
explicitly enabled for isolated development. Stream endpoints must also use
TLS when this configuration is attached to Configuration.
Constructors
Creates OAuth 2 settings.
parameters can carry provider-specific fields such as audience or
scope; Crabbit always adds grant_type. The HTTP provider uses Basic
client authentication and requires JSON containing access_token and a
positive expires_in.
Token refresh is scheduled after refresh_ratio of the advertised lifetime. Retrieval and live re-authentication failures use exponential backoff between refresh_retry_delay and refresh_retry_max_delay.
Instance methods
Returns whether unencrypted token and Stream transports are permitted.