2개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
0
Hi jai,
Using Cognito groups with IsAuthorizedWithToken() call is not yet supported. You have a couple of alternatives:
- Switching to use isAuthorized() and manually verifying / unpacking token and then constructing principal portion of entity slice yourself
- Using scope from access token as a way to match mulitple users
답변함 6달 전
0
Unfortunately the isAuthzWithToken API does not currently support groups.
I would recommend using the plain vanilla IsAuthorized API instead. In this scenario, you would translate the token to a user entity and pass the entity to the IsAuthz API. You can find sample code for translating the entity and sending it to AVP here
관련 콘텐츠
- AWS 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 2년 전
Hi maxim, i think each clientIds under we are creating the users, i have doubt to match the multiple users under a particular clientId giving some restrictions.How we can handle scope variable because all scope values are same for every users
can we add custom claims or modify instead of cognito groups in access token