auth

package
v0.0.0-...-79b2c7f Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoogleAuth

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

GoogleAuth ... Google OIDC Authentication Client

func NewGoogleAuth

func NewGoogleAuth(ctx context.Context, cfg *config.AuthConfig) (*GoogleAuth, error)

func (*GoogleAuth) Config

func (a *GoogleAuth) Config() *oauth2.Config

func (*GoogleAuth) FetchUserInfo

func (a *GoogleAuth) FetchUserInfo(code string) (*oidc.UserInfo, error)

FetchUserInfo ... Fetch user's information with oidc authentication

Jump to

Keyboard shortcuts

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