Documentation ¶
Index ¶
- func GetAuth0JWKSInfo(auth0Domain string) ([]byte, error)
- func GetAuth0JWKSPublicKeyCert(jwksInfo []byte, idToken string) (cert string, err error)
- func GetAuth0JWKSSet(jwksInfo []byte) (set jose.JSONWebKeySet, err error)
- func ParseAuth0RSAPublicKeyFromCert(cert string) (*rsa.PublicKey, error)
- func ValidateAuth0RS256IDToken(rsaPublicKey *rsa.PublicKey, idToken string) error
- func ValidateAuth0RS256IDTokenByJWKSSet(set jose.JSONWebKeySet, idToken string) error
- func VerifyAuth0RS256IDToken(rsaPublicKey *rsa.PublicKey, idToken string, claims jwtTool.IJWTClaims) error
- func VerifyAuth0RS256IDTokenByJWKSSet(set jose.JSONWebKeySet, idToken string, claims jwtTool.IJWTClaims) error
- type Common
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuth0JWKSInfo ¶
func GetAuth0JWKSSet ¶
func VerifyAuth0RS256IDToken ¶
func VerifyAuth0RS256IDTokenByJWKSSet ¶
func VerifyAuth0RS256IDTokenByJWKSSet(set jose.JSONWebKeySet, idToken string, claims jwtTool.IJWTClaims) error
Types ¶
type Common ¶
type Common struct { AuthTime *jwt.NumericDate `json:"auth_time,omitempty"` Email string `json:"email,omitempty"` Name string `json:"name,omitempty"` Nickname string `json:"nickname,omitempty"` Nonce string `json:"nonce,omitempty"` Picture string `json:"picture,omitempty"` SID string `json:"sid,omitempty"` UpdatedAt string `json:"updated_at,omitempty"` UserPermissions []string `json:"user_permissions,omitempty"` *jwt.Claims }
func (*Common) ExpiresAfter ¶
func (*Common) GetExpiresAfter ¶
func (c *Common) GetExpiresAfter() *jwt.NumericDate
Click to show internal directories.
Click to hide internal directories.