auth

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccessToken added in v0.1.8

func GetAccessToken(conf *oauth2.Config, verifier TokenVerifyier, util Utils) (string, error)

func ValidateAccessToken added in v0.1.8

func ValidateAccessToken(accessToken string) error

Types

type IDToken

type IDToken interface {
	Claims(v interface{}) error
}

type TokenVerifyier

type TokenVerifyier interface {
	Verify(context.Context, string) (IDToken, error)
}

type Utils

type Utils struct {
	OpenURL func(url string) error
	NewUUID func() (string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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