Reputation: 2778
I was using the default login page for cognito & trying to pass query parameters in the callback URL. It seems to work only with 1 query param but not 2 (did not try more than that). I tried encoding the query parameters of the URL (as was mentioned in some posts here) but did not work. What works
what doesn't work
Any clue how to make this work? For now, I have cheated & feeding it as val1=val2 & parsing it out.
I created the user pool, identity pool using cloud formation scripts.
Upvotes: 3
Views: 9996
Reputation: 2778
Response from AWS -
In the console you should provide the unencoded URL - https://www.google.com?val1=a&val2=b. When accessing the hosted UI you have to provide the encoded redirect URL - redirect_uri=https%3A%2F%2Fwww.google.com%3Fval1%3Da%26val2%3Db
Hope this helps!
Upvotes: 4
Reputation: 2450
This is the purpose of the STATE
variable - Documentation & Reference.
To properly configure the state variable: &state=testparam1=param+testparam2=newparam
Upvotes: 11