github

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Claims

type Claims struct {
	Id     int    `json:"id"`
	Issuer string `json:"iss"`
	Email  string `json:"email"`
	Name   string `json:"name"`
	Image  string `json:"avatar_url"`
}

type Provider

type Provider struct {
	Provider *oidc.Provider
	Endpoint oauth2.Endpoint
	Logger   *zap.Logger
}

func (*Provider) RedirectUrl

func (g *Provider) RedirectUrl(redirectUrl, appRedirect string, projectId uuid.UUID, creds *model.ProviderCredentials) (string, error)

func (*Provider) Test

func (g *Provider) Test(ctx context.Context, privateKey, publicKey, redirectUrl string) error

func (*Provider) Validate

func (g *Provider) Validate(ctx context.Context, creds *model.ProviderCredentials, code, redirectUrl string) (*auth.Oauth2Claims, error)

Jump to

Keyboard shortcuts

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