auth

package
v0.0.0-...-0dc46f9 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: MIT Imports: 11 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 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"`
}

type Query

type Query interface {
}

Jump to

Keyboard shortcuts

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