Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication with hosted UI fails on Edge 18 with TypeError: Invalid Argument #5534

Closed
Stereobit opened this issue Apr 24, 2020 · 4 comments

Comments

@Stereobit
Copy link

Stereobit commented Apr 24, 2020

Describe the bug
Authentication with any Identity prover fails when redirecting back to WebApp

What AWS Services are you utilizing?
Amplify, Auth

Environment
Web

To Reproduce
Steps to reproduce the behavior:

  1. Initialise with Auth.configure
  2. Redirect to Hosted UI
  3. Authenticate
  4. Redirect back
  5. See error

Expected behavior
Authentication and removal of code query param, like in other browsers

Code Snippet
https://github.com/Stereobit/amplify-test

Screenshots
image

What is Configured?

Auth.configure({
  identityPoolId: "XX-XXXX-X:XXXXXXXX-XXXX-1234-abcd-1234567890ab",
  region: "eu-west-1",
  userPoolId: "XX-XXXX-X",
  userPoolWebClientId: "a1b2c3d4e5f6g7h8i9j0k1l2m3",
  oauth: {
    domain: "my_cognito_domain",
    scope: ["email"],
    redirectSignIn: "my_cognito_domain",
    responseType: "code",
  },
});

See repo for webpack & babel configs

Environment
  System:
    OS: macOS 10.15.4
    CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
    Memory: 68.20 MB / 16.00 GB
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 14.0.0 - /usr/local/bin/node
    Yarn: 1.22.4 - /usr/local/bin/yarn
    npm: 6.14.4 - /usr/local/bin/npm
  Browsers:
    Chrome: 81.0.4044.122
    Safari: 13.1
  npmPackages:
    @aws-amplify/auth: ^3.2.4 => 3.2.4
    @babel/core: ^7.9.0 => 7.9.0
    @babel/polyfill: ^7.8.7 => 7.8.7
    @babel/preset-env: ^7.9.5 => 7.9.5
    babel-loader: ^8.1.0 => 8.1.0
    html-webpack-plugin: ^4.2.0 => 4.2.0
    webpack: ^4.43.0 => 4.43.0
    webpack-cli: ^3.3.11 => 3.3.11
  npmGlobalPackages:
    npm: 6.14.4
  • Device: Desktop
  • OS: Windows 10
  • Browser Edge
  • Version 18
@russell-dot-js
Copy link

I've detailed the issue here, your feedback is appreciated aws/aws-sdk-js-v3#1107

@Amplifiyer
Copy link
Contributor

@Stereobit can you confirm if the issue is fixed with the new amplify version?

@Stereobit
Copy link
Author

@Amplifiyer Updated last weekend, happy to confirm that this is now fixed. Thank you!

@github-actions
Copy link

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants