sso

package
v0.0.0-...-f6e517b Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyKey   = errors.New("empty key")
	ErrInvalidKey = errors.New("invalid key")
)

Functions

func AppleSecret

func AppleSecret(clientID, teamID, keyID, keySecret string) (string, error)

func GetScopes

func GetScopes(additionalScopes ...string) []string

Types

type Claims

type Claims struct {
	Email         string `json:"email"`
	EmailVerified string `json:"email_verified"`
}

type Provider

type Provider struct {
	Provider *oidc.Provider
	Config   *oauth2.Config
	Verifier *oidc.IDTokenVerifier
}

func NewProvider

func NewProvider(clientID, clientSecret, providerURL, redirectURL string, scopes []string) (*Provider, error)

type Providers

type Providers struct {
	Apple  *Provider
	Google *Provider
}

Jump to

Keyboard shortcuts

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