Package dev.sigstore.oidc.client
Class WebOidcClient
java.lang.Object
dev.sigstore.oidc.client.WebOidcClient
- All Implemented Interfaces:
OidcClient
A client to obtain oidc tokens from an oauth provider via web workflow for use with sigstore. By
default this client is configued to use the public sigstore dex instance.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Interface for allowing custom browser handlers for OauthClients.static class
static class
Internal. -
Method Summary
-
Method Details
-
builder
-
isEnabled
This provider is usually enabled unless we're in CI.- Specified by:
isEnabled
in interfaceOidcClient
- Parameters:
env
- the configured system environment- Returns:
- true if we should use credentials from this client
-
getIDToken
Get an id token from the oidc provider with openid and email scopes- Specified by:
getIDToken
in interfaceOidcClient
- Returns:
- an openid token with additional email scopes
- Throws:
OidcException
- if an error occurs doing the authorization flow
-