oauth

package
v0.0.0-...-ea208d4 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OrcidEndpoint = oauth2.Endpoint{
	AuthURL:  "https://orcid.org/oauth/authorize",
	TokenURL: "https://orcid.org/oauth/token",
}

Functions

func GoogleLogin

func GoogleLogin(ctx context.Context, l *Login) (*user.NormalizedUser, error)

func LinkedInLogin

func LinkedInLogin(ctx context.Context, l *Login) (*user.NormalizedUser, error)

func OrcidLogin

func OrcidLogin(ctx context.Context, l *Login) (*user.NormalizedUser, error)

Types

type Login

type Login struct {
	NewLogin     *auth.NewLogin
	ClientSecret string
}

type ProviderSecrets

type ProviderSecrets struct {
	Google   string `json:"google"`
	LinkedIn string `json:"linkedin"`
	Orcid    string `json:"orcid"`
}

Jump to

Keyboard shortcuts

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