class

Crabbit::OAuth2HttpTokenProvider

Inherits Crabbit::OAuth2TokenProvider < Reference < Object

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.

Constructors

new(config : OAuth2Config)

Creates an HTTP provider for config.

Source

Instance methods

config

Returns the token request configuration.

Source
request

Requests and validates a fresh token.

Source