Closed ranopriyo-neogy closed 1 year ago
Please close this issue..
The issue was using Amplify.configure(updatedAwsConfig);
instead of Auth.configure(awsConfig);
or Amplify.configure(awsConfig);
Glad you were able to unblock yourself @ranopriyo-neogy! Let us know if you have any further issues!
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
Authentication
Amplify Categories
auth
Environment information
Describe the bug
I have deployed a simple React App and trying to add authentication on top of the App.js component. Here I am using Okta as an IDP configured manually to the Cognito user pool deployed using Amplify. The docs I followed for Okta and Cognito Integration is - cognito-okta-saml-identity-provider To add the auth component in App.js I followed the mentioned code provided in - AmplifyDocs
Using it I was able to get a button that on-click sends me to IDP (Okta) for authentication. The IDP authentication is successful however I observed the token that IDP should provide to Cognito was not being sent and I was again re-directed to the same page (With the button) to click for federation using IDP.
The Error I observed in the developer console log is..
On further researching it, I found the IDP token was not present for calls made to
cognito-identity.us-east-1.amazonaws.com
which informs Cognito that the user has been authenticated.Expected behavior
Post authentication at Okta IDP, I should be able to able to get into the App.
Reproduction steps
Code Snippet
Here is my code snippet for
App.js
Log output
aws-exports.js
Manual configuration
App Client Cognito
Web Client Cognito
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response