Documentation ¶
Overview ¶
Package access represents the processing logic of access token.
Index ¶
- type BaseClaim
- type OAuth2AccessTokenClaim
- type Option
- func WithAuthorizedClientIDs(m map[string][]string) Option
- func WithClientCertificateGoBackSeconds(t string) Option
- func WithClientCertificateOffsetSeconds(t string) Option
- func WithEnableMTLSCertificateBoundAccessToken(b bool) Option
- func WithEnableVerifyClientID(b bool) Option
- func WithJWKProvider(jwkp jwk.Provider) Option
- type Processor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseClaim ¶
type BaseClaim struct {
jwt.StandardClaims
}
type OAuth2AccessTokenClaim ¶
type OAuth2AccessTokenClaim struct { AuthTime int64 `json:"auth_time"` Version int `json:"ver"` ClientID string `json:"client_id"` UserID string `json:"uid"` ProxyPrincipal string `json:"proxy,omitempty"` Scope []string `json:"scp"` Confirm map[string]string `json:"cnf"` BaseClaim }
OAuth2AccessTokenClaim represents access token claim data. based on https://github.com/AthenZ/athenz/blob/0e7335dbfa9d41eef0b049c07e7f846bff0f3169/libs/java/auth_core/src/main/java/com/AthenZ/athenz/auth/token/AccessToken.java#L382
type Option ¶
type Option func(*atp) error
Option represents a functional options pattern interface
func WithAuthorizedClientIDs ¶
WithAuthorizedClientIDs represents set authorizedClientIDs functional option
func WithClientCertificateGoBackSeconds ¶
WithClientCertificateGoBackSeconds represents set clientCertificateGoBackSeconds functional option
func WithClientCertificateOffsetSeconds ¶
WithClientCertificateOffsetSeconds represents set clientCertificateOffsetSeconds functional option
func WithEnableMTLSCertificateBoundAccessToken ¶
WithEnableMTLSCertificateBoundAccessToken represents set enableMTLSCertificateBoundAccessToken functional option
func WithEnableVerifyClientID ¶
WithEnableVerifyClientID represents set enableVerifyClientID functional option
func WithJWKProvider ¶
WithJWKProvider represents set pubkey provider functional option