controller

package
v0.0.0-...-920ada6 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOAuth2Handler

func NewOAuth2Handler(e *echo.Echo, middleware *middleware.GoMiddleware, manager oauth2.Manager, us _oauth2.Usecase)

NewOAuth2Handler will initialize the articles/ resources endpoint

Types

type OAuth2Handler

type OAuth2Handler struct {
	OAuth2Usecase _oauth2.Usecase
}

OAuth2Handler represent the httphandler for oauth2

func (*OAuth2Handler) HandleJwtError

func (h *OAuth2Handler) HandleJwtError(err error) error

HandleJwtError will handle jwt error

func (*OAuth2Handler) IssueAccessToken

func (h *OAuth2Handler) IssueAccessToken(c echo.Context) error

IssueAccessToken will create access token

func (*OAuth2Handler) RevokeAccessToken

func (h *OAuth2Handler) RevokeAccessToken(c echo.Context) error

RevokeAccessToken will revoke access token

func (*OAuth2Handler) VerifyAccessToken

func (h *OAuth2Handler) VerifyAccessToken(c echo.Context) error

VerifyAccessToken will verify access token

Jump to

Keyboard shortcuts

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