I am new to angular and I would like to know if this is possible. I have an SSO using a forms authentication which I use to authenticate in MVC web applications. Can I use this existing authentication to provide SSO to my new angular web apps? If it is possible please give me some ideas on how to implement this. Thank you in advance.
We use a token (JWT) that is passed to the angular client application and is used to authenticate future requests.
At a high level we perform the forms authentication and on successful login we respond to the client with the JWT which is stored into session storage. Then the application is redirected to our angular SPA which has a Guard that loads the token from storage and authenticates the session or redirects the user back to the login page if the JWT is missing or expired.
We use this lib to help with JWT "stuff" on the angular side (check for expiration, etc.). https://github.com/auth0/angular2-jwt
You can see an example here: https://code-maze.com/authentication-aspnetcore-jwt-1/