oauth2

package
v0.0.0-...-e31961d Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthGrantPassword

type AuthGrantPassword struct {
	Username string
	Password string
}

AuthGrantPassword to authorize user via

type Usecase

type Usecase struct {
}

Usecase for oauth2

func New

func New() *Usecase

New oauth2 usecase

func (*Usecase) Authorize

func (u *Usecase) Authorize(grantType string, authParam interface{}) error

Authorize user via oauth2

func (*Usecase) Create

func (u *Usecase) Create(userID string, scopes []string) error

Create new oauth2 access

func (*Usecase) IsGrantTypeAllowed

func (u *Usecase) IsGrantTypeAllowed(grantType string) error

IsGrantTypeAllowed to check whether the grant type is allowed or not

Jump to

Keyboard shortcuts

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