verify

package
v1.0.1-0...-49adebd Latest Latest
Warning

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

Go to latest
Published: May 30, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InvalidAccessToken

func InvalidAccessToken(message string) *oauth2.AppErr

InvalidAccessToken The request send an invalid access token or expired

func InvalidRequest

func InvalidRequest(message string) *oauth2.AppErr

InvalidRequest The request is missing a required parameter, includes an unsupported parameter value

func InvalidScope

func InvalidScope(message string) *oauth2.AppErr

InvalidScope The requested scope is not allowed

Types

type VerifyHandler

type VerifyHandler struct {
	Storage oauth2.Storage
}

func New

func New(storage oauth2.Storage) *VerifyHandler

func (*VerifyHandler) ServeHTTP

func (h *VerifyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*VerifyHandler) Verify

func (h *VerifyHandler) Verify(req *VerifyHandlerRequest) error

type VerifyHandlerRequest

type VerifyHandlerRequest struct {
	AccessToken string
	Scopes      []string
}

Jump to

Keyboard shortcuts

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