oauth

package
v0.0.0-...-5377c57 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Oauth2Payload

type Oauth2Payload struct {
	State string `json:"state"`
	Token string `json:"token"`
}

Oauth2Payload is payload struct to retrive from provider login

type Provider

type Provider interface {
	GetUserInfo(payload *Oauth2Payload, oauthStateString string) (model.User, error)
}

Provider give you all providers functions for oauth2

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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