Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AugmentTokenClaimsRequest ¶ added in v1.1.6
type AugmentTokenClaimsRequest struct { IdTokenClaims fluffycore_contracts_claims.IClaims AccessTokenClaims fluffycore_contracts_claims.IClaims }
type AugmentTokenClaimsResponse ¶ added in v1.1.6
type AugmentTokenClaimsResponse struct { IdTokenClaims fluffycore_contracts_claims.IClaims AccessTokenClaims fluffycore_contracts_claims.IClaims }
type IAuthorizationCodeClaimsAugmentor ¶ added in v1.1.6
type IAuthorizationCodeClaimsAugmentor interface {
AugmentTokenClaims(ctx context.Context, request *AugmentTokenClaimsRequest) (*AugmentTokenClaimsResponse, error)
}
type ITokenService ¶
type ITokenService interface {
MintToken(ctx context.Context, request *MintTokenRequest) (*MintTokenResponse, error)
}
type MintTokenRequest ¶
type MintTokenRequest struct { // Claims is a map of claims to be included in the token. // The standard claims of the token provider are added automatically. i.e. issuer, etc Claims fluffycore_contracts_claims.IClaims // DurationLifeTimeSeconds is the duration of the token in seconds. // the final expiration time is calculated as NotBeforeUnix + DurationLifeTimeSeconds DurationLifeTimeSeconds int // NotBeforeUnix is the unix time in seconds that the token is not valid before. NotBeforeUnix int64 }
type MintTokenResponse ¶
Click to show internal directories.
Click to hide internal directories.