admin管理员组文章数量:1323524
I am new to the Angular application. I would need to a suggestion to implement SSO Integration with Angular6 (SPA). I didn't get anything on the net for the plete tutorial.
Basically, I am a php developer and I did SSO integration with php applications. Since Angular6 is UI, I don't know how to manage the secret and redirection and other things with Angular6.
So It would be better if someone suggests me steps (or Github samples) to implement Angular6 & SSO Integration and what would be the best way to do that?
I am new to the Angular application. I would need to a suggestion to implement SSO Integration with Angular6 (SPA). I didn't get anything on the net for the plete tutorial.
Basically, I am a php developer and I did SSO integration with php applications. Since Angular6 is UI, I don't know how to manage the secret and redirection and other things with Angular6.
So It would be better if someone suggests me steps (or Github samples) to implement Angular6 & SSO Integration and what would be the best way to do that?
Share Improve this question edited Dec 28, 2018 at 8:38 p u 1,4551 gold badge20 silver badges30 bronze badges asked Jul 27, 2018 at 13:47 RajaRaja 3,62713 gold badges51 silver badges91 bronze badges 8- 2 you can use libraries like auth0 that will do this for you, if it interests you I will write out proper implementation – Smokey Dawson Commented Sep 7, 2018 at 1:00
- 1 SO post, auth0 tutorial, the github page for tutorial – Kalnode Commented Sep 7, 2018 at 1:05
- 1 this library handles all for you in angular app, if you want to see an example check this – Okan Aslankan Commented Sep 7, 2018 at 11:28
- Thanks for your reply. I have been working for Comcast and they have their own SSO with (Client id and Call back URL). So i don't know what to go with Auth0. Do you guys know any library in node package for Angular that handles for SSO?. Because i have checked Auth0, they have their own package like '"auth0-js": "^9.4.1" for Angular,' And i think, it work only with Auth0 client id and all. But in my case, it will be different. – Raja Commented Sep 7, 2018 at 14:44
- I think this might help you auth0./blog/angular-2-authentication – Jayampathy Wijesena Commented Sep 10, 2018 at 2:22
1 Answer
Reset to default 1Here is my way to integrate with multiple sso in my applications. Currently, i already integrated sso ( jwt, kerberos, saml2, ...)
We have an angular app and rest api ...
/front-end/sso/method
( method can be saml, jwt, kerberos )
When user visit any font-end sso url, it will be redirected to rest-api to handle sign on:
/back-end/sso/method?callback=frontend-url
So all sso requests are also handled at server...
You can control/manage it easily with (php or java ...)
If success, we will redirect user to front-end url with a token. Token can be put in header to hide from eye of user.
/front-end/sso/method?token=abc
If fail, we will redirect user with error message
/front-end/sso/method?error=Invalid....
PS: i choose this implementation because i am in favor of back end language and don't want to show many information at front-end ( like saml configuration ... )
本文标签: javascriptSSO Integration with Angular6 applicationStack Overflow
版权声明:本文标题:javascript - SSO Integration with Angular6 application - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742131178a2422166.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论