Documentation ¶
Index ¶
- Constants
- type JWKS
- func (j JWKS) DoGetJWKS(ctx context.Context) JWKSInt
- func (j JWKS) GetJWKSRSAKeys(awsRegion string, poolID string) (map[string]string, error)
- func (j JWKS) JWKSGetKeyset(awsRegion, poolId string) (*JWKS, error)
- func (j JWKS) JWKSToRSA(jwks *JWKS) (map[string]string, error)
- func (j JWKS) JWKSToRSAJSONResponse(jwks *JWKS) ([]byte, error)
- func (j JWKS) JWKToRSAPublicKey(jwk JsonKey) (string, error)
- type JWKSInt
- type JsonKey
Constants ¶
View Source
const ( RSAAlgorithm = "RSA" RSAExponentAQAB = "AQAB" RSAExponentAAEAAQ = "AAEAAQ" RSADefaultExponent = 65537 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWKS ¶
type JWKS struct {
Keys []JsonKey `json:"keys"`
}
func (JWKS) GetJWKSRSAKeys ¶ added in v1.38.0
GetJWKSRSAKeys retrieves the JWKS RSA keys which are consumed by the authorisation middleware on startup.
func (JWKS) JWKSGetKeyset ¶
JWKSGetKeyset primary package method which retrives the json web key set for cognito user pool
func (JWKS) JWKSToRSAJSONResponse ¶
JWKSToRSAJSONResponse method returns byte[] array for request response
Click to show internal directories.
Click to hide internal directories.