Versions in this module Expand all Collapse all v1 v1.0.1 Feb 21, 2024 v1.0.0 Feb 21, 2024 Changes in this version + type Config struct + PollInterval config.Duration + Timeout config.Duration + TokenRefreshGracePeriod config.Duration + type DeviceAccessTokenRequest struct + ClientID string + DeviceCode string + GrantType string + type DeviceAccessTokenResponse struct + Error string + type DeviceAuthorizationRequest struct + Audience string + ClientID string + Scope string + type DeviceAuthorizationResponse struct + DeviceCode string + ExpiresIn int64 + Interval int64 + UserCode string + VerificationURI string + VerificationURIComplete string + type OAuthTokenOrError struct + Error string + type TokenOrchestrator struct + Config Config + func NewDeviceFlowTokenOrchestrator(baseOrchestrator tokenorchestrator.BaseTokenOrchestrator, cfg Config) (TokenOrchestrator, error) + func (t TokenOrchestrator) FetchTokenFromAuthFlow(ctx context.Context) (*oauth2.Token, error) + func (t TokenOrchestrator) PollTokenEndpoint(ctx context.Context, tokReq DeviceAccessTokenRequest, ...) (*oauth2.Token, error) + func (t TokenOrchestrator) StartDeviceAuthorization(ctx context.Context, dareq DeviceAuthorizationRequest) (*DeviceAuthorizationResponse, error)