auth

package
v0.0.0-...-990d579 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthState

type AuthState struct {
}

func NewAuthState

func NewAuthState() *AuthState

type Authenticator

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

func NewAuthenticator

func NewAuthenticator(conf *oauth2.Config, provider oidconnect.OIDCProvider) *Authenticator

func (*Authenticator) StartAuthentication

func (a *Authenticator) StartAuthentication() (string, string, time.Time)

OpenID Connectを利用した認証の開始

func (*Authenticator) VerifyAuthentication

func (a *Authenticator) VerifyAuthentication(ctx context.Context, code string) (*OpenIDToken, error)

OpenID Connectの認証結果の検証

type GroupInquirer

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

func NewGroupInquirer

func NewGroupInquirer(inquirer oidconnect.GroupInquirer) *GroupInquirer

func (*GroupInquirer) IsMember

func (g *GroupInquirer) IsMember(ctx context.Context, email, group string) (bool, error)

type OpenIDToken

type OpenIDToken struct {
	Issuer   string `json:"iss"`
	Sub      string `json:"sub"`
	Email    string `json:"email"`
	Verified bool   `json:"email_verified"`
	Name     string `json:"name"`
}

Jump to

Keyboard shortcuts

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