usecase

package
Version: 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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOAuth2Usecase

func NewOAuth2Usecase(Manager oauth2.Manager, mamatimeout time.Duration) _oauth2.Usecase

NewOAuth2Usecase will create new an articleUsecase object representation of article.Usecase interface

Types

type OAuth2Usecase

type OAuth2Usecase struct {
	Manager oauth2.Manager
}

OAuth2Usecase usecase

func (*OAuth2Usecase) IssueClientCredentialAccessToken

func (a *OAuth2Usecase) IssueClientCredentialAccessToken(ctx context.Context, request request.OAuth2ClientCredentialRequest) (ti oauth2.TokenInfo, err error)

IssueClientCredentialAccessToken will issue client credential access token

func (*OAuth2Usecase) IssuePasswordCredentialAccessToken

func (a *OAuth2Usecase) IssuePasswordCredentialAccessToken(ctx context.Context, request request.OAuth2PasswordCredentialRequest) (ti oauth2.TokenInfo, err error)

IssuePasswordCredentialAccessToken Issue password credential access token

func (*OAuth2Usecase) IssueRefreshAccessToken

func (a *OAuth2Usecase) IssueRefreshAccessToken(ctx context.Context, request request.OAuth2RefreshTokenRequest) (ti oauth2.TokenInfo, err error)

IssueRefreshAccessToken Issue refresh token

func (*OAuth2Usecase) RevokeAccessToken

func (a *OAuth2Usecase) RevokeAccessToken(ctx context.Context, token string) error

RevokeAccessToken will revoke access token

func (*OAuth2Usecase) VerifyAccessToken

func (a *OAuth2Usecase) VerifyAccessToken(ctx context.Context, token string) (ti oauth2.TokenInfo, err error)

VerifyAccessToken will verify access token

Source Files

Jump to

Keyboard shortcuts

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