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
 |  Show 3 more ments

1 Answer 1

Reset to default 1

Here 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