Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface {
Blackbox
AuthenticateOIDCToken(ctx context.Context, r *http.Request, headerKey, expectedAudience, expectedIssuer string) (*structcup.AuthResponse, error)
AuthenticateOIDCTokenWithPrefix(ctx context.Context, r *http.Request, headerKey, prefix, expectedAudience, expectedIssuer string) (*structcup.AuthResponse, error)
CreateOIDCToken(ctx context.Context, fsys fs.ReadFileFS, credentialsPath string, audience string) (*oauth2.Token, error)
}
func NewClient ¶
func NewClient(d Dependencies) (Client, error)
type Dependencies ¶ added in v0.1.8
type Dependencies struct {
FR contract.FSysFileReader
}
Click to show internal directories.
Click to hide internal directories.