Do you want to request a feature or report a bug?
Feature Request
What is the current behavior?
When using the React component for authentication it doesn't seem possible to display the available SAML providers as options for signin. Having the option to display SAML links along with the standard username/password form (just like the default Cognito login page does) would be much nicer and allow me to keep users in my app for their entire workflow.
What is the expected behavior?
It would be great if buttons to use the SAML providers for sign in were made available in the react component.
Which versions of Amplify, and which browser / OS are affected by this issue? Did this work in previous versions?
Currently using 1.0.5. Previous versions did not have this either.
@joshjreed - sorry to reach out to you this way, but I saw in your open issue ^^^ that you have an amplify app using SAML auth. I've been trying to get aws-amplify to work with aws-appsync, using SAML-based IdP with Cognito authentication. Did you find a good example of this working somewhere, or figure it all out yourself? _Again, apologies for hijacking your issue._
@sconzof I mostly pieced it together by myself. There doesn't seem to be much good documentation on Amazon's side for that setup. I wasn't able to get the Amplify sign-in component working with SAML, so instead I'm using the generated cognito login page with a redirect back to my app. I'm not really happy with the solution, so I'm hoping there are some more options I missed. Good luck!
@joshjreed thanks for the reply! Though that's disappointing to hear that you couldn't get the SAML sign-in working from within your app. I'm surprised at how much friction I'm encountering to get this all working.
Hello I'm using SAML as well. I'm having to use the hosted UI. I have an issue where I want those that sign in with the hosted UI to return to the page they signed in from. I trying passing a "state=url" parameter, but when it comes back to my app I get "?state" and the value is gone.
I of course can't get "withOAuth" to work. Has anyone resolved a similar issue? It would be great to have more support on SAML, the hosted UI seems to be a forgotten about after thought that doesn't work correctly.
I figured out what the issues was, I was using window.location.pathname to pass the path name to cognito. I was ending out with "state=//pathname", so the double slash was causing issues. Just in case anyone else is trying to do some thing similar.
Thanks for the update @blazestudios23. We are looking deeper into automating the SAML configuration, but it may be some months based on the current backlog and customer demand. However if you have any suggestions for using Amplify with SAML in your current experience and are so inclined, we'd welcome contributions in the form of a PR to the docs: https://github.com/aws-amplify/docs/blob/master/js/authentication.md
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.