oauth

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserInfoURLs = map[string]string{
	"google":   "https://www.googleapis.com/oauth2/v2/userinfo",
	"facebook": "https://graph.facebook.com/me?fields=id,name,email,picture",
	"github":   "https://api.github.com/user",
}

UserInfoURLs maps OAuth provider names to their user info API endpoints. These URLs are used to retrieve basic profile data (such as ID, name, and email) after exchanging an access token during the OAuth2 flow.

Functions

func NewOAuth2Config

func NewOAuth2Config(cfg *cfg.OAuthConfig, scopes []string, urls oauth2.Endpoint) *oauth2.Config

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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