.Net oidc switch organisation
Hi,
using asp.net oidc. No SDK. Inital login working fine.
I want to switch the organisation after login:
using
props = new AuthenticationProperties() { Items.Add(new KeyValuePair<string, string?>("org_code", "ORG_ID HERE")); }
await context.ChallengeAsync(OpenIdConnectDefaults.AuthenticationScheme, props);
Which does login, however the access token contains the orignal org_code and permissions not the newly selected one - any pointers?4 Replies
Hey @lee_uk,
Let me speak to my .NET teammate on this and get back to you.
Hey @lee_uk,
My team mate who is an expert in .NET will be back online tomorrow.
I will reach out out them then.
Hey any news on this?
Hi @lee_uk,
It doesn't look like setting
AuthenticationProperties
causes the extra parameters to be passed through to the auth request.
When configuring OpenID there is an event handler that can add parameters and can read the parameters passed in AuthenticationProperties
, so there is a opportunity to read those and pass them through.
For example,
Does this provide a way forward for you?Yep that works just fine.
Useful event that, thanks for pointing it out.