Azure-Samples / active-directory-b2c-advanced-policies

Sample for use with Azure AD B2C with Custom Policies.
http://aka.ms/aadb2ccustom
MIT License
218 stars 143 forks source link

Support for Elliptic Curve (EC) key types #42

Open crAZiAc opened 5 years ago

crAZiAc commented 5 years ago

When trying to connect Azure B2C with another IdP, using custom policies, we encounter the following error in AppInsights logging:

Key type not supported: 'EC'. and it bails out with a FatalException

The IdP we're trying to connect to supports RSA and EC key types, and sends both of them in the JWKS endpoint.

B2C does not seem to handle the EC key type in the JWKS.

Could you please fix this? Or is there any setting in B2C we could use to prevent the error from happening?

Thanks in advance

felickz commented 4 years ago

Any workaround to clear error?

https://feedback.azure.com/forums/169401-azure-active-directory/suggestions/38510968-aad-b2c-add-support-for-ec-key-type-to-openid-con