Replies: 2 comments 5 replies
|
Just to confirm, an enterprise customer was not willing to enable the ID tokens, but was (would have been) willing to configure a secret on the admin? Seems like a worse approach to me. Anyway, can't really comment on your actual problem and question. Maybe @kevinchalet you can share some insights? |
4 replies
|
Ok thanks @kevinchalet the OpenId Client works! Settings to get it to work
|
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The Microsoft Entra ID feature (
OrchardCore.Microsoft.Authentication.AzureAD) can only do theimplicit flow.
OpenIdConnectOptionsConfigurationnever setsResponseType, andAzureADSettingshas no client secret field, so
MicrosoftIdentityOptions.ClientSecretis always null. ASP.NET Corethen falls back to its default of
response_type=id_tokenwithresponse_mode=form_post.That's why the docs tell you to enable "ID tokens" under Implicit grant and hybrid flows on the
app registration.
This is now a blocker with enterprise customers. One of ours refused to enable that option at all,
on the grounds that no token should be issued from the front-channel authorize endpoint, and that
applications should use the authorization code flow. The implicit and hybrid flows are also on the
way out with OAuth 2.1.
The current workaround is an
IPostConfigureOptions<OpenIdConnectOptions>in a custom module that matchesAzureADOptionsConfiguration.AzureAdOpenIdConnectSchemeand setsResponseType,UsePkceandClientSecretfrom tenant configuration. It works on 2.0.0 and 3.0.1.I would like to know if this will create any issues? So far users have been able to register and login. Would like to make sure I didn't miss anything. Thanks.
All reactions