thirdpartyauthentication

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OAuthServer

type OAuthServer struct {
	Host                 string               `json:"host"`
	Port                 string               `json:"port"`
	AuthorizeEndpoint    string               `json:"authorize_endpoint"`
	UserTokenInformation UserTokenInformation `json:"token_user_information"`
}

func LoadFromConfig

func LoadFromConfig() OAuthServer

func (*OAuthServer) Authorize

func (oauthServer *OAuthServer) Authorize(request fasthttp.Request) (string, string, error)

type ProtectionInfo

type ProtectionInfo struct {
	Header   string
	UserInfo string
	Cached   bool
	Error    error
}

type UserTokenInformation

type UserTokenInformation struct {
	Source      string `json:"source"`
	Name        string `json:"name"`
	Active      bool   `json:"active"`
	Information string
}

Jump to

Keyboard shortcuts

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