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{}
}
Click to show internal directories.
Click to hide internal directories.