class
Crabbit::OAuth2HttpTokenProvider
- Crabbit::OAuth2HttpTokenProvider
- Crabbit::OAuth2TokenProvider
- Reference
- Object
Overview
RFC-style HTTP token provider used by default.
It sends a form-encoded request with HTTP Basic client authentication and
parses JSON access_token and expires_in fields.
Defined in:
crabbit/oauth2.crConstructors
-
.new(config : OAuth2Config)
Creates an HTTP provider for config.
Instance Method Summary
-
#config : OAuth2Config
Returns the token request configuration.
-
#request : OAuth2Token
Requests and validates a fresh token.