-
Notifications
You must be signed in to change notification settings - Fork 433
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
App does not load if STS has an issue, CORS for Example #717
Comments
Hi @paulstelzer Just wondering if this is good or not. Why should the APP start? If the STS is setup incorrectly and you can not authenticate from the Angular APP, then there is no point in having the authn in the Angular APP. Greetings Damien |
Have you tried to catch the error in the init and return a resolved (but empty) promise instead? |
If CORS is broken on your STS, then you have a DevOps problem maybe, or the system never ran. This is one thing I don't understand in catching. But yes, maybe the app should be able to recover from this. |
Cors is enabled now, I only found the issue and want to let you know. I think it's better to have an application that is running than having a white page :) |
Totally. Thanks for mentioning this. Glad your issue is fixed. Maybe we will tackle this in future versions. But this would be a breaking change again. We have to draw this first, try it out and maybe bring that up in future versions. Thanks for using the lib 🙃 |
Hey @paulstelzer , just wanted to let you know that we just merged a PR which gives you the possibility to lazy load the config and so move the error - if there is one at your sts - to the moment when the user clicks login. describes the feature. If you set the |
Describe the bug
If the sts server has no cors enabled, the application will not start
To Reproduce
Steps to reproduce the behavior:
to your app-module.ts providers section, you will see that the application will not start anymore.
Expected behavior
The application should start anyway.
Desktop (please complete the following information):
All
Smartphone (please complete the following information):
All
The text was updated successfully, but these errors were encountered: