abstract class Crabbit::OAuth2TokenProvider

Overview

Provider interface for retrieving OAuth 2 access tokens.

Implement this type for non-standard grants, external credential agents, or pre-existing token caches. Implementations may block the calling fiber and should raise OAuth2Error with actionable context on failure.

Direct Known Subclasses

Defined in:

crabbit/oauth2.cr

Instance Method Summary

Instance Method Detail

abstract def request : OAuth2Token #

Retrieves a non-expired access token.


[View source]