oauth

package
v0.0.0-...-dcec341 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthURL

func GetAuthURL() (string, error)

Get oauth url. When authorizing with OAuth, redirect to this URL.

Returns:

{string} - Google OAuth url.

func Redirect

func Redirect(ctx context.Context, r *http.Request) (*oauthapi.Userinfo, error)

Google OAuth redirect.

Arguments:

ctx {context.Context} - Context.
r {*http.Request} - request.

Returns:

{*oauthapi.Userinfo} - User info.

func SetConfig

func SetConfig()

Create Google oauth instance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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