1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
1
Hi,
Cognito doesn't validate with external IdP during refresh token flow, if the refresh token that is issued by Cognito is still valid, end-user can continue to get new access and id tokens from Cognito without needing to re-authenticate with the external IdP.
If you have a use-case that requires validation with external IdP then I'd recommend using a short-lived refresh token (1 hour is the shortest TTL for refresh token) and this will force sign-in when token expires.
관련 콘텐츠
- AWS 공식업데이트됨 5달 전
- AWS 공식업데이트됨 2년 전
- AWS 공식업데이트됨 일 년 전
Thanks! That's what I assumed. In my case, I'd like to keep the long-lived refresh tokens for user convenience so I'm looking at ways to know if a federated identity has changed. Apple and Google both have some options:
https://developer.apple.com/documentation/sign_in_with_apple/processing_changes_for_sign_in_with_apple_accounts https://developers.google.com/identity/protocols/risc