authn

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OIDC

type OIDC interface {
	ExchangeAuthCodeForProviderTokens(code string) (accessToken, refreshToken string, accessTokenExpiry time.Time, email string, err error)
	RefreshAccessToken(providerToken *models.ProviderToken) (accessToken string, expiry *time.Time, err error)
	GetUserInfo(providerToken *models.ProviderToken) (*UserInfo, error)
}

func NewOIDC

func NewOIDC(domain, clientID, clientSecret, redirectURL string) OIDC

type UserInfo

type UserInfo struct {
	Email  string   `json:"email"`
	Groups []string `json:"groups"`
}

UserInfo captures the fields from a user-info response that we care about

Jump to

Keyboard shortcuts

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