{"modulePath":"github.com/chainloop-dev/chainloop","version":"v1.138.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package authenticator\n\n## Types\n\n```go\ntype OIDC struct {\n\t*oidc.Provider\n\toauth2.Config\n}\n```\nOIDC is used to authenticate our users.\n\n```go\nfunc NewOIDC(discoveryDomain, clientID, clientSecret, redirectURL string) (*OIDC, error)\n```\nNewOIDC instantiates an OIDC authenticator. During initialization the endpoints are retrieved from the discovery URL\n\n```go\nfunc (a *OIDC) VerifyIDToken(ctx context.Context, token *oauth2.Token) (*oidc.IDToken, error)\n```\nVerifyIDToken verifies that an \\*oauth2.Token is a valid \\*oidc.IDToken. Including checking for it's sigature, expiration, audience and so on.\n\n","path":"github.com/chainloop-dev/chainloop/app/controlplane/internal/oidcauthenticator","name":"authenticator","synopsis":"","isRedistributable":true}
