The flow of my application is that,
- User enter the Url and AngularJS Login page is displayed
- User click on Login with SAML and calls the Web API endpoint which returns the SAML login URL
- AngularJS UI receives the SAML Login URL and redirects the user to the Idp Login screen
- User is authenticated from Idp and Idp calls the AssertionUrl
The issue starts here,
- If I create an Assertion Url on Web API and validates the request then how the AngularJS UI will know that Login was successful or not?
In the case of MVC and Web Forms, it is pretty straightforward but what should be done in the case of AngularJS/Angular SPA?
Edit 1:
Login Flow
SPA -> API -> SPA -> Idp
(SPA calls API, API generate SAML Request and Returns it to SPA, SPA then is redirected to Idp)
Assertion Flow
Idp -> API ? SPA
(Idp calls the AssertionUrl in the API and API generates the JWT but how it will be sent to SPA?)