DuendeSoftware / Support

Support for Duende Software products
21 stars 0 forks source link

Question: Using Dynamic Providers, is there a built-in mechanism to store claims transformation/mapping per provider #1381

Closed omon77 closed 3 months ago

omon77 commented 3 months ago

Which version of Duende IdentityServer are you using? v7.0.6

Which version of .NET are you using? .NET8

Question Using Dynamic Providers feature (already configured), is there a built-in mechanism to store claims transformation/mapping configuration in Properties property of IdentityProvider type? If it is not available or this is not the correct approach, what would be the correct approach? We are an Enterprise license customer, and can reach out via email, if that's a better option.

AndersAbel commented 3 months ago

No, there is no built in support for driving claims transformation from per-provider configuration.

Our configuration system is however designed to facilitate such a scenario. Claims transformation can be done by the ClaimActions concept on the OpenIDConnectOptions. And we supply a way to configure the OpenIDConnectOptions from the provider object (including the properties).

See https://docs.duendesoftware.com/identityserver/v7/ui/login/dynamicproviders/#accessing-oidcprovider-data-in-iconfigurenamedoptions fore more details.

omon77 commented 3 months ago

Thank you @AndersAbel !