Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Verifier ¶
type Verifier interface { VerifierType() common.JWTType Validate(ctx context.Context, token string) ([]string, bool, string, error) Callback(ctx context.Context, u *url.URL) (string, string, int, error) IssueRedirect(string) string }
Verifier is a generic JWT verifier interface. Different implementations will use different client libraries to verify the tokens. Currently requires only one method. Given a token, return the claims and whether there is a verification error.
Directories ¶
Path | Synopsis |
---|---|
Package mockusertokens is a generated GoMock package.
|
Package mockusertokens is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.