{"modulePath":"github.com/stackpointcloud/kubernetes","version":"v1.3.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package oidc\n\noidc implements the authenticator.Token interface using the OpenID Connect protocol.\n\n## Constants\n\n```go\nconst (\n\tDefaultRetries = 5\n\tDefaultBackoff = time.Second * 3\n)\n```\n\n## Types\n\n```go\ntype OIDCAuthenticator struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc New(opts OIDCOptions) (*OIDCAuthenticator, error)\n```\nNew creates a new OpenID Connect client with the given issuerURL and clientID. NOTE(yifan): For now we assume the server provides the \"jwks\\_uri\" so we don't need to manager the key sets by ourselves.\n\n```go\nfunc (a *OIDCAuthenticator) AuthenticateToken(value string) (user.Info, bool, error)\n```\nAuthenticateToken decodes and verifies a JWT using the OIDC client, if the verification succeeds, then it will extract the user info from the JWT claims.\n\n```go\nfunc (a *OIDCAuthenticator) Close()\n```\nClose closes the OIDC authenticator, this will close the provider sync goroutine.\n\n```go\ntype OIDCOptions struct {\n\tIssuerURL     string\n\tClientID      string\n\tCAFile        string\n\tUsernameClaim string\n\tGroupsClaim   string\n\n\t// 0 disables retry\n\tMaxRetries   int\n\tRetryBackoff time.Duration\n}\n```\n\n","path":"github.com/stackpointcloud/kubernetes/plugin/pkg/auth/authenticator/token/oidc","name":"oidc","synopsis":"oidc implements the authenticator.Token interface using the OpenID Connect protocol.","isRedistributable":true}
