package
0.0.0-20241130001046-e13ab8da91b6
Repository: https://github.com/foundation-go/foundation.git
Documentation: pkg.go.dev
# Functions
CheckAllScopesPresence checks if the context contains all specified scopes.
CheckAnyScopePresence checks if the context contains at least one of the specified scopes.
GetAccessToken returns the access token from the context.
GetAuthenticated returns the authenticated flag from the context.
GetClientID returns the OAuth client ID from the context.
GetCorrelationID returns the correlation ID from the context.
GetLogger returns the logger from the context.
GetScopes returns the OAuth scopes from the context.
GetTX returns the transaction from the context.
GetUserID returns the user ID from the context.
WithAccessToken sets the access token to the context.
WithAuthenticated sets the authenticated flag to the context.
WithClientID sets the OAuth client ID to the context.
WithCorrelationID sets the correlation ID to the context.
WithLogger sets the logger to the context.
WithScopes sets the OAuth scopes to the context.
WithTX sets the transaction to the context.
WithUserID sets the user ID to the context.
# 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
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
Oauth2Scopes represents a list of OAuth scopes.