facebook

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: Apache-2.0 Imports: 12 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        string `json:"sub"`
	Issuer    string `json:"iss"`
	Email     string `json:"email"`
	Name      string `json:"name"`
	Image     string `json:"picture"`
	FirstName string `json:"given_name"`
	LastName  string `json:"family_name"`
	Verified  bool   `json:"verified"`
}

type Provider

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

func (*Provider) RedirectUrl

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

func (*Provider) Test

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

func (*Provider) Validate

func (f *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