internaloauth

package
v3.10.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2018 License: Apache-2.0 Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type NoopGroupMapper

type NoopGroupMapper struct{}

func (NoopGroupMapper) GroupsFor

func (n NoopGroupMapper) GroupsFor(username string) ([]*userapi.Group, error)

type OAuthTokenValidator

type OAuthTokenValidator interface {
	Validate(token *oauth.OAuthAccessToken, user *userapi.User) error
}

func NewExpirationValidator

func NewExpirationValidator() OAuthTokenValidator

func NewUIDValidator

func NewUIDValidator() OAuthTokenValidator

type OAuthTokenValidatorFunc

type OAuthTokenValidatorFunc func(token *oauth.OAuthAccessToken, user *userapi.User) error

func (OAuthTokenValidatorFunc) Validate

func (f OAuthTokenValidatorFunc) Validate(token *oauth.OAuthAccessToken, user *userapi.User) error

type OAuthTokenValidators

type OAuthTokenValidators []OAuthTokenValidator

func (OAuthTokenValidators) Validate

func (v OAuthTokenValidators) Validate(token *oauth.OAuthAccessToken, user *userapi.User) error

type TimeoutValidator

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

func NewTimeoutValidator

func NewTimeoutValidator(tokens oauthclient.OAuthAccessTokenInterface, oauthClients oauthclientlister.OAuthClientLister, defaultTimeout int32, minValidTimeout int32) *TimeoutValidator

func (*TimeoutValidator) Run

func (a *TimeoutValidator) Run(stopCh <-chan struct{})

func (*TimeoutValidator) Validate

func (a *TimeoutValidator) Validate(token *oauth.OAuthAccessToken, _ *userv1.User) error

Validate is called with a token when it is seen by an authenticator it touches only the tokenChannel so it is safe to call from other threads

type UserToGroupMapper

type UserToGroupMapper interface {
	GroupsFor(username string) ([]*userapi.Group, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL