amazon-cognito-auth-js
amazon-cognito-auth-js copied to clipboard
Connection reset error
Hello,
I have the same issue like this:
I have setup Cognito using OpenID with Salesforce as the Identity Provider. I am able to login fine with the redirect giving me an authorization_code in the url. However if I open a new Chrome window in Incognito mode and try to login again I intermittently get redirected with an error in the url as follows: https:///login?error_description=Connection%20reset&error=invalid_request Any ideas on why I am getting this error?
https://stackoverflow.com/questions/51640439/cognito-with-salesforce-error-when-logging-in
Some time it is work:
Some time it is not work:
I have the same issue, it works not stable.
I'm having the same issue, also with Salesforce OpenID provider. It fails the first time with "Connection reset". I'm using Amplify, though.
I also have the same issue with amplify
Was there a resolution to this issue? We are seeing similar errors with a third-party's (not SalesForce) IdP.
I removed amazon-cognito-auth-js. I direct do oauth by myself.
As this issue looks like won't be fixed in near future, I solved that flow with catching that error and retry sign it on it (for Amplify):
onHubCapsule(capsule: any) {
const { channel, payload } = capsule;
if (channel === 'auth' && payload.event === 'signIn') {
this.props.history.push(RoutePath.HOME);
this.props.getUserSession();
// handle Exception processing authorization error with retry
} else if (
channel === 'auth' &&
payload.event === 'signIn_failure' &&
payload.data === 'Exception+processing+authorization+code'
) {
AuthService.loginSalesforce();
}
}