Closed saadgsquad closed 1 year ago
hello @saadgsquad. Can you prefix your redirectSignIn
,in your configuration, with /
at the end. E.g <URL>/callback.html/
. Probably that is causing a URL miss match.
Thanks for the response, @israx @cwomack
I tried with that and also tried with multiple scenarios but I'm getting the still same response as I mentioned above. If there is mismatch URL then we are getting a proper error like url is invalid
, might there is a issue in _handleAuthResponse
function -> file packages/auth/Auth.ts
, if it's possible could please check?
before I was using aws-amplify/auth
version 2.1.8
which is working fine on my app. but we have to upgrade to the aws-amplify
version.
I noticed in versions 2.1.8
and the latest there is a code
format difference we are getting now hexadecimal format but I think that is not the issue.
the issue is I'm unable to get the accessToken from the code that's why I'm getting 404 error on https://cognito-identity.us-east-1.amazonaws.com/
Payload:
{
"IdentityPoolId": "us-east-1:xxxxxxxxx",
"Logins": {
"cognito-idp.us-east-1.amazonaws.com/us-east-1xxx": ""
}
}
Response:
"1 validation error detected: Value '{cognito-idp.us-east-1.amazonaws.com/us-east-1_xxxx}' at 'logins' failed to satisfy constraint: Map value must satisfy constraint: [Member must have length less than or equal to 50000, Member must have length greater than or equal to 1]"
__type
:
"ValidationException"
thanks, guys for the help with the issue in redirecting url calls multiple times I have this problem, which is fixed now.
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
Authentication
Amplify Categories
auth
Environment information
Describe the bug
I was using @awsamplfy/auth with version 2.1.8 and I have to upgrade the package due to the package dependency violation. When I am upgrading the package, It is working fine with the Username and Password, and t not working fine with the SSO login.
For the SSO login, I am using AWS-Cognito with Gmail.
It is redirecting on the callback after the redirect package throws this error.
Error:
Config:
Expected behavior
call aws-cognito API but not getting token.
Throw proper validation error details if I am missing any point.
Reproduction steps
Code Snippet
Log output
aws-exports.js
Manual configuration
No response
Additional configuration
clientMetadata: { tenant_name: axios.tenant, environment: process.env.REACT_APP_ENV },
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response