oauthclient

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthorizeGoogleUrl

func GetAuthorizeGoogleUrl(params *model.Params) (string, error)

func GetAuthorizeMicrosoftUrl

func GetAuthorizeMicrosoftUrl(params *model.Params) (string, error)

func HandleGoogleCallback

func HandleGoogleCallback(request *http.Request) (*model.Params, error)

func HandleMicrosoftCallback

func HandleMicrosoftCallback(request *http.Request) (*model.Params, error)

func Init

func Init(cfg *utils.Config)

func InitGoogle

func InitGoogle(cfg *utils.Config)

func InitMicrosoft

func InitMicrosoft(cfg *utils.Config)

Types

type JSONWebKeys

type JSONWebKeys struct {
	Kty string   `json:"kty"`
	Kid string   `json:"kid"`
	Use string   `json:"use"`
	N   string   `json:"n"`
	E   string   `json:"e"`
	X5c []string `json:"x5c"`
}

type Jwks

type Jwks struct {
	Keys []JSONWebKeys `json:"keys"`
}

Jump to

Keyboard shortcuts

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