By WoutervdW - 8/14/2019
I am using the ExampleIdentityProvider from the Examples solution as an example for my own IdentityProvider implementation. In my case I will have multiple partner service providers that can use my IdentityProvider for SSO and SSO. Whenever a SP initiated SSO is processed in my IdentityProvider, I want to show the name of the Partner SP in the login view / page, to indicate the user for which SP (s)he is logging in. But I can not find an easy way to do this.
Using the delegate OnAuthRequestReceived I can get the partner name in the delegate method, but how can I then get the name available in the login view/page?
Or in the SamlController in the SingleSignOnService method I can do:
var idpSsoRes = await _samlIdentityProvider.ReceiveSsoAsync(); var partnerName = idpSsoRes.PartnerName;
But then again the question: how to get this partnerName value available in the login view/page?
Because the login view/page will be processed on/as a different httpRequest it is not possible to add something to the httpContext.Items...
So is there a way to read the current SSO context or state in the login view/page, using dependency injection to get the correct instance of one of the ComponentSpace classes? Or some other solution?
|
By ComponentSpace - 8/15/2019
You're welcome.
|
|