Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCookieStore ¶
func NewCookieStore(key string) *sessions.CookieStore
func WriteHttpError ¶
func WriteHttpError(w http.ResponseWriter, err error)
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
func NewAuthenticator ¶
func NewAuthenticator(conf *oauth2.Config, provider 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, rawIDToken string) (*openIDToken, error)
OpenID Connectの認証結果の検証
type LoginSession ¶
func ExtractSession ¶
func ExtractSession(req *http.Request, store *sessions.CookieStore) *LoginSession
type OIDCProvider ¶
type OIDCProvider interface { Verifier(config *oidc.Config) *oidc.IDTokenVerifier Endpoint() oauth2.Endpoint }
func NewGoogleAuthProvider ¶
func NewGoogleAuthProvider(ctx context.Context) (OIDCProvider, error)
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) AuthorizeMiddleware ¶
type ServerOptions ¶
Click to show internal directories.
Click to hide internal directories.