spring-guides / tut-spring-security-and-angular-js

Spring Security and Angular:: A tutorial on how to use Spring Security with a single page application with various backend architectures, ranging from a simple single server to an API gateway with OAuth2 authentication.

Home Page:https://spring.io/guides/tutorials/spring-security-and-angular-js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple UI:s, Zuul, Oauth2 SSO

LeandroFChaves opened this issue · comments

Hi!

Sorry for weak English and for reviving the topic, but come on ...

I have a situation very similar (#43) to the one you presented, but with some peculiarities. See if you can help me with any suggestions.

I have 3 UI applications in angular 7 and today all authenticate separately, I want to change this. Today, authentication is done using the grant flow password. I want to implement a single sign on for these 3 applications.

I started a study that can be analyzed in reposit https://github.com/LeandroFChaves/spring-security-oauth2 where I created a client, a resource and an authentication server. The idea is to create one more client, one resource server and both to authenticate in the oauth server with SSO, starting with the principle that if it was first logged in one while accessing the other client it will not have to log in again.

I thought of using the Zuul proxy to do this somehow, but I confess I'm lost.

My client already has a configured proxy that will point to some server that I imagined would be responsible for the single sing on with zuul, but I caught on that part.

As you have practically gone through the same situation, can you give any tips on how I can go on?

One important note is that my client is 100% javascript with angular, in most cases the situation is different.

Thank you.