My team is tasked with implementing SSO into our web application (full .net 4.8 hosted in Azure). However, we need to rely on authentication of an external application.
A bit of context. Imagine there are 2 separate companies (A and B) which have separate web apps (SP_A and SP_B). We are the company B in this context.
Here is the requested workflow:
We have accomplished that with JWT tokens nested in Authorization headers. Here is what happens behind the scenes:
Our client requested that we use SAML2.0 protocol instead.
I am using ITfoxtec sample projects as a starting point, but I am quite lost. All external articles want to enable one centralized IdP which would prompt a user for password and email once and Claims will be passed from IdP to SPs. It does not apply to our case, since users are auth-ed in SP_A app.
Thoughts?
if SP_A and SP_B are using the same IdP and both implement SAML or OIDC SSO, then you are good.
The logic is like this: when user successfully logins to SP_A, the browser will get two sessions: one session for SP_A and one session for IdP.
When the user tries to login to SP_B, the browser will redirect the user to login to IdP, since IdP knows the user has already logged in, it will not prompt the login page. And then SP_B can also issue a session to this user.