Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Signer ¶
type Signer interface {
// Convert any data proto to signed JWT token
Sign(ctx context.Context, claim []byte, expire time.Time) (token string, errUC *types.CommonError)
// Get keys to verify token this usecase have signed
Keys(ctx context.Context) (keys []Keys, errUC *types.CommonError)
}
Usecase converts OIDC credential to another identity token With Subject and Issuer field changed TOKEN Based authorization
type VerifierOf ¶
type VerifierOf[T any] interface { // Verify token VerifyAs(ctx context.Context, token string) (claim T, errUC *types.CommonError) }
Specific case of Verifier
Click to show internal directories.
Click to hide internal directories.