uncefact / project-traceability

API definitions and testable mocks for a garment traceability project with UNECE and ITC based on GS1 EPCIS
GNU General Public License v3.0
6 stars 2 forks source link

Add a link to login page and parse the token_id from Cognito response #36

Closed kshychko closed 2 years ago

kshychko commented 2 years ago

Please add a link to AWS Hosted UI for login via Cognito+GitHub. I suggest using the root page for that: https://9idvmp0256.execute-api.ap-southeast-2.amazonaws.com/v1/ Please use the env variable for the link, we would set the value with Pulumi The current link for the mock deployment could be useful for testing:

https://mock-traceability.auth.ap-southeast-2.amazoncognito.com/login?client_id=6k427jnbdlhhs00ikrkplp7sha&response_type=token&scope=openid&redirect_uri=https://9idvmp0256.execute-api.ap-southeast-2.amazonaws.com/v1

The callback URL needs to be set to a dedicated page that would parse the query parameters and show the token_id value to the user so they can copy and paste it into Postman collection.