tokenservice

package
v1.6.13-herb-blazor-de... Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: MIT Imports: 2 Imported by: 0

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

type MintTokenResponse struct {
	Token      string
	Expiration int64
}

Jump to

Keyboard shortcuts

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