Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
TenantPath string `json:"-"`
TokenLifeTime int64 `json:"-"`
DeviceCodeLifeTime int `json:"-"`
RefreshTokenLifeTime int64 `json:"-"`
Scheme string `json:"-"`
EndpointGroup string `json:"-"`
ConsentEndpoint string `json:"-"`
Issuer string `json:"issuer"`
JwksURI string `json:"jwks_uri"`
AuthorizationEndpoint string `json:"authorization_endpoint"`
TokenEndpoint string `json:"token_endpoint"`
UserInfoEndpoint string `json:"userinfo_endpoint"`
EndSessionEndpoint string `json:"end_session_endpoint"`
CheckSessionIframe string `json:"check_session_iframe"`
RevocationEndpoint string `json:"revocation_endpoint"`
IntrospectionEndpoint string `json:"introspection_endpoint"`
DeviceAuthorizationEndpoint string `json:"device_authorization_endpoint"`
DeviceCodeEndpoint string `json:"device_code_endpoint"`
FrontchannelLogoutSupported bool `json:"frontchannel_logout_supported"`
FrontchannelLogoutSessionSupported bool `json:"frontchannel_logout_session_supported"`
BackchannelLogoutSupported bool `json:"backchannel_logout_supported"`
BackchannelLogoutSessionSupported bool `json:"backchannel_logout_session_supported"`
ScopesSupported []string `json:"scopes_supported"`
ClaimsSupported []string `json:"claims_supported"`
GrantTypesSupported []string `json:"grant_types_supported"`
ResponseTypesSupported []string `json:"response_types_supported"`
ResponseModesSupported []string `json:"response_modes_supported"`
TokenEndpointAuthMethodsSupported []string `json:"token_endpoint_auth_methods_supported"`
IDTokenSigningAlgValuesSupported []string `json:"id_token_signing_alg_values_supported"`
SubjectTypesSupported []string `json:"subject_types_supported"`
CodeChallengeMethodsSupported []string `json:"code_challenge_methods_supported"`
RequestParameterSupported bool `json:"request_parameter_supported"`
}
func DefaultConfig ¶
func DefaultConfig() *Config
type RSAJWTKey ¶
type RSAJWTKey struct {
JWTKey
E string `json:"e"` //The "e" (exponent) parameter contains the exponent value for the RSA public key.
N string `json:"n"` //The "n" (modulus) parameter contains the modulus value for the RSA public key. It is represented as a Base64urlUInt-encoded value.
PublicKey *rsa.PublicKey `json:"-"`
}
func NewRSAJWTKey ¶
NewRSAJWTKey 新建一个RSAJWTKey
func NewRSAJWTKeyWithPEM ¶
NewRSAJWTKeyWithPEM 通过pem证书文件内容新建一个RSAJWTKey
Click to show internal directories.
Click to hide internal directories.