pmill / aws-cognito

A PHP library for AWS Cognito user pools
MIT License
74 stars 62 forks source link

Add compatibility with cognito id tokens generated by hosted UI #34

Closed evgalak closed 4 years ago

evgalak commented 5 years ago

Hi @pmill, thanks for the great package!

On my project, I also need support authorization by tokens generated with Cognito Hosted UI. But they have a little bit different fields.

Here is an example of the payload: { "at_hash": "", "sub": "", "aud": "", "event_id": "", "token_use": "id", "auth_time": 1573809477, "iss": "", "name": "SomeName", "cognito:username": "UserName", "exp": 1573813077, "iat": 1573809477, "email": "test@test.com" }