package oidc

import "k8s.io/kubernetes/plugin/pkg/auth/authenticator/token/oidc"

oidc implements the authenticator.Token interface using the OpenID Connect protocol.

Index

Types

type OIDCAuthenticator

type OIDCAuthenticator struct {
	// contains filtered or unexported fields
}

func New

func New(issuerURL, clientID, caFile, usernameClaim string) (*OIDCAuthenticator, error)

New 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.

func (*OIDCAuthenticator) AuthenticateToken

func (a *OIDCAuthenticator) AuthenticateToken(value string) (user.Info, bool, error)

AuthenticateToken decodes and verifies a JWT using the OIDC client, if the verification succeeds, then it will extract the user info from the JWT claims.

Source Files

oidc.go

Version
v1.1.9-beta.0
Published
Feb 23, 2016
Platform
js/wasm
Imports
12 packages
Last checked
7 minutes ago

Tools for package owners.