services

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: Apache-2.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 IAuthenticate added in v0.0.20

type IAuthenticate interface {
	Authenticate(ctx context.Context, tokenFn func() (string, error), fullMethod string) (authorization IAuthorization, err error)
}

IAuthenticate interface returns error, ErrInWhitelist, ErrInvalidArguments, ErrUnauthenticated, ErrDeny, ErrNoRefreshToken, ErrScopeNotExist, ErrOutOfScopes if success return id

type IAuthorization added in v0.0.20

type IAuthorization interface {
	GetID() []byte
	// GetClaim response must assert to specify jwt claim struct
	GetClaim() interface{}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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