question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

After @aws-amplify/ui-react v2.0.0 upgrade the Auth.configure({ ... }) stop working

See original GitHub issue

After @aws-amplify/ui-react v2.0.0 upgrade the Auth.configure({ … }) stop working.

Now I can just see the standard login page

import { Auth } from "@aws-amplify/auth";

Auth.configure({
  region: ...,
  userPoolId: ...,
  userPoolWebClientId: ...,
  oauth: {
    domain: ...,
    redirectSignIn: ...,
    redirectSignOut: ...,
    scope: ["email", "profile", "openid", "aws.cognito.signin.user.admin"],
    responseType: "code"
  }
});

function App(): JSX.Element {

}

export default withAuthenticator(App);

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
kingferiolcommented, Feb 14, 2022

Hi @ErikCH sorry to ping again on this closed issue but I’m quite close to what I want to achieve and this lead me to incredible frustration.

My application is working with AWS Cognito (I don’t have any social provider) federated with an identity provider (it is not Google, Facebook, or Amazon).

I can’t find a way to add a button to be redirected to the AWS Cognito Hosted UI page (as I was able to do in the past). It seems that the section OAuth now is ignored. Documentation doesn’t help that much in this super plain scenario (no need to work with Google, Facebook, Amazon … just want to land to the AWS Cognito Hosted UI).

Auth.configure({
  region: ...,
  userPoolId: ...,
  userPoolWebClientId: ...,
  oauth: {
    domain: ...,
    redirectSignIn: ...,
    redirectSignOut: ...,
    scope: ["email", "profile", "openid", "aws.cognito.signin.user.admin"],
    responseType: "code"
  }
});

Maurizio

0reactions
ErikCHcommented, Jan 13, 2022

Closing this for now, please reopen if it’s still occurring.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Auth Error: Amplify has not been configured correctly after ...
Describe the bug Using the React UI components to provide login/reset/signup (no real customization, pretty much out of the box), after ...
Read more >
AuthError - Error: Amplify has not been configured correctly
Possible that this is new in an updated version of amplify as I had amplify auth working flawlessly before and the issue arose...
Read more >
Amplify UI's new Authenticator component makes it easy to ...
In this blog post we will deploy a React app with Amplify Hosting, set up auth, and then integrate the <Authenticator> UI component...
Read more >
Tutorial - Add authentication - React - AWS Amplify Docs
Getting Started with Amplify - how to add auth to your app - React - AWS Amplify Docs. ... go to Amplify Console...
Read more >
Release Notes for Cisco Identity Services Engine, Release 3.0
If you are upgrading from Cisco ISE 2.7 or earlier release to Cisco ISE 3.0, you must reconfigure the settings for SNMP users...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found