Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type DefaultTool ¶ added in v0.1.11
func NewTool ¶
func NewTool(c Client, opts contract.ToolOptions[Client]) *DefaultTool
func (*DefaultTool) AuthenticateOIDC ¶ added in v0.1.11
func (d *DefaultTool) AuthenticateOIDC(ctx context.Context, r *http.Request, opts contract.AuthOptions) (*contract.AuthenticationResult, error)
AuthenticateOIDC performs OIDC authentication using the provided AuthOptions.
func (*DefaultTool) CreateOIDCToken ¶ added in v0.1.11
func (d *DefaultTool) CreateOIDCToken(ctx context.Context, credentialsJSON []byte, audience string) (*oauth2.Token, error)
CreateOIDCToken generates an OIDC token using the given service account credentials.
Click to show internal directories.
Click to hide internal directories.