googlesignin

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(config tools.GetConfig, provider *secure.Provider) *oauth.OAuthProvider

Types

type Google

type Google struct {
	ClientID     string   `bson:"client_id"`
	ClientSecret string   `bson:"client_secret"`
	Scopes       []string `bson:"scopes"`
}

func (*Google) Authentificate

func (g *Google) Authentificate(r *http.Request) (oauth.UserData, error)
func (g *Google) GenerateLink(redirectURL string) string

func (*Google) GetName

func (g *Google) GetName() string

Jump to

Keyboard shortcuts

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