Versions in this module Expand all Collapse all v0 v0.1.1 Mar 11, 2024 v0.1.0 Oct 19, 2023 Changes in this version + const GrantType + const TokenType + type ClientAuthentication struct + AuthStyle auth.Style + ClientID string + ClientSecret string + func (c *ClientAuthentication) InjectAuthentication(values url.Values, headers http.Header) + type Options struct + Authentication ClientAuthentication + Client *http.Client + Endpoint string + ExtraOpts map[string]interface{} + Headers http.Header + RefreshToken string + Request *TokenRequest + type TokenRequest struct + ActingParty struct{ ... } + Audience string + GrantType string + RequestedTokenType string + Resource string + Scope []string + SubjectToken string + SubjectTokenType string + type TokenResponse struct + AccessToken string + ExpiresIn int + IssuedTokenType string + RefreshToken string + Scope string + TokenType string + func ExchangeToken(ctx context.Context, opts *Options) (*TokenResponse, error) + func RefreshAccessToken(ctx context.Context, opts *Options) (*TokenResponse, error)