google

package
v0.0.0-...-2922ab5 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OAuth2Google

type OAuth2Google struct{}

OAuth2Google in order to implement interface, struct is required

func (*OAuth2Google) CodeUrl

func (o *OAuth2Google) CodeUrl(state string) string

CodeUrl get url to redirect client for auth

func (*OAuth2Google) CodeUrl2

func (o *OAuth2Google) CodeUrl2(state string) string

func (*OAuth2Google) Exchange

func (o *OAuth2Google) Exchange(code string) (*oauth2.Token, error)

Exchange exchange code for Oauth2 token

func (*OAuth2Google) Exchange2

func (o *OAuth2Google) Exchange2(code string) (*oauth2.Token, error)

func (*OAuth2Google) Setup

func (o *OAuth2Google) Setup() error

Setup validate provider

func (*OAuth2Google) UserInfo

func (o *OAuth2Google) UserInfo(oauth2Token *oauth2.Token) (*model.User, error)

UserInfo get token user

Jump to

Keyboard shortcuts

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