1 個回答
- 最新
- 最多得票
- 最多評論
0
I have not tried it myself, but if it is an OIDC compliant token, you should be able to verify it through the official verification process, getting the jwks url in the iss field of the token
Here is how to do it:
- From the token get the iss value
- Issue a GET on the URI built from iss+/.well-know/openid-configuration https://cognito-identity.amazonaws.com/.well-known/openid-configuration
- From the JSON returned, get the jwks_uri field
- Issue a GET to the URI from the jwks_uri field to get the jwks https://cognito-identity.amazonaws.com/.well-known/jwks_uri
- Use the kid from the id token to select the right entry in the jwks to verify the signature
相關內容
- 已提問 6 個月前
- AWS 官方已更新 1 年前
- AWS 官方已更新 3 年前
- AWS 官方已更新 2 年前
- AWS 官方已更新 1 年前