auth

package
v0.0.0-...-8306d54 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Github

type Github struct{}

Github in order to implement interface, struct is required

func (*Github) CodeUrl

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

CodeUrl get url to redirect client for auth

func (*Github) Exchange

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

Exchange exchange code for Oauth2 token

func (*Github) Setup

func (o *Github) Setup() error

Setup validate provider

func (*Github) UserInfo

func (o *Github) 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