Sage / omniauth-cognito-idp

OmniAuth Strategy for AWS Cognito in Ruby
Apache License 2.0
35 stars 13 forks source link

Use client.site when fetching the access token #14

Open coatezy opened 3 months ago

coatezy commented 3 months ago

This PR solves an issue we had experienced during integration caused by our expected query string parameter set in the client.site option being removed resulting in an unauthorized error.

By using client.site instead of callback_url we can preserve any query string parameters that may be included within the site key and also configured in the callback url within the user pool client app.