package
0.14.0
Repository: https://github.com/apache/pulsar-client-go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

ExtractUserName extracts the username claim from an authorization grant conforms to draft-ietf-oauth-access-token-jwt.
GetOIDCWellKnownEndpointsFromIssuerURL gets the well known endpoints for the passed in issuer url.
No description provided by the author
NewConfigBackedCachingProvider builds and returns a CachingTokenProvider that utilizes a configProvider to cache tokens.
NewDefaultClientCredentialsFlow provides an easy way to build up a default client credentials flow with all the correct configuration.
No description provided by the author
NewDefaultDeviceAuthorizationGrantRefresher constructs a grant refresher based on the result of the device authorization flow.
NewDefaultDeviceCodeFlow provides an easy way to build up a default device code flow with all the correct configuration.
NewLocalDeviceCodeProvider allows for the easy setup of LocalDeviceCodeProvider.
NewTokenRetriever allows a TokenRetriever the internal of a new TokenRetriever to be easily set up.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GrantTypeClientCredentials represents a client credentials grant.
GrantTypeDeviceCode represents a device code grant.

# Structs

AuthorizationCodeExchangeRequest is used to request the exchange of an authorization code for a token.
AuthorizationGrant is a credential representing the resource owner's authorization to access its protected resources, and is used by the client to obtain an access token.
AuthorizationTokenResponse is the HTTP response when asking for a new token.
ClientCredentialsExchangeRequest is used to request the exchange of client credentials for a token.
ClientCredentialsFlow takes care of the mechanics needed for getting an access token using the OAuth 2.0 "Client Credentials Flow".
No description provided by the author
No description provided by the author
ConfigBackedCachingProvider wraps a configProvider in order to conform to the cachingProvider interface.
No description provided by the author
DeviceCodeExchangeRequest is used to request the exchange of a device code for a token.
DeviceCodeFlow takes care of the mechanics needed for getting an access token using the OAuth 2.0 "Device Code Flow".
No description provided by the author
No description provided by the author
DeviceCodeResult holds the device code gotten from the device code URL.
Issuer holds information about the issuer of tokens.
No description provided by the author
No description provided by the author
DeviceCodeProvider holds the information needed to easily get a device code locally.
No description provided by the author
OIDCWellKnownEndpoints holds the well known OIDC endpoints.
RefreshTokenExchangeRequest is used to request the exchange of a refresh token for a refreshed token.
No description provided by the author
TokenErrorResponse is used to parse error responses from the token endpoint.
TokenResult holds token information.
TokenRetriever implements AuthTokenExchanger in order to facilitate getting Tokens.

# Interfaces

AuthorizationGrantRefresher refreshes OAuth 2.0 authorization grant.
ClientCredentialsExchanger abstracts exchanging client credentials for tokens.
ClientCredentialsProvider abstracts getting client credentials.
AuthorizationCodeProvider abstracts getting an authorization code.
DeviceTokenExchanger abstracts exchanging for tokens.
Flow abstracts an OAuth 2.0 authentication and authorization flow.
HTTPAuthTransport abstracts how an HTTP exchange request is sent and received.

# Type aliases

No description provided by the author
No description provided by the author