GO-2024-2965: Pomerium exposed OAuth2 access and ID tokens in user info endpoint response in github.com/pomerium/pomerium
package
Version:
v0.26.0
Opens a new window with list of versions in this module.
Published: May 14, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package token provides a thread-safe cache of a authorization token that may be used across http and grpc clients
type Cache struct {
TimeNow func() time.Time
}
Cache is a thread-safe cache of a authorization token
that may be used across http and grpc clients
NewCache creates a new token cache
GetToken returns the current token if its at least `minTTL` from expiration, or fetches a new one.
Fetcher is a function that fetches a new token
Token is a bearer token
ExpiresAfter returns true if the token expires after the given time
Source Files
¶
Click to show internal directories.
Click to hide internal directories.