-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enhancement] Initialize confidentialClientApplicationOptions properties from microsoftIdentityOptions when possible needed #742
Comments
However, I'm pretty confused that you want to call Graph with a B2C settings. Or is it to provision users? (in that case it's considered as an AAD application - you won't pass-in any policy?)
|
Hi @jmprieur Thanks for your answer, but I still don't fully understand that.
2 & 3. I noticed that in all the examples and tutorials the focus is on the
|
@radistmorse. Thanks for sharing your scenario with us. Pretty advanced compared to what most of our customers do.
|
@jennyf19 : do you think we'd want to take an enhancement to avoid having to pass-in the clientID, tenantId, Instance, ClientSecret in the call to |
@jennyf19, what do you think of this improvement: We could set ConfidentialClientApplicationOptions from MicrosoftIdentityOptions when not overriden. Something like: confidentialClientApplicationOptions.ClientId ??= microsoftIdentityOptions.ClientId;
// etc |
Included in 1.6.0 release. |
I use Identity.Web/Identity.Web.MicrosoftGraph v1.2 & MS Graph SDK v3.19 in an asp core 3.1 web api application.
I use graph in AppOnly mode. This is my configuration:
The first and obvious question is: is this the correct way? I never found any examples with the simple confidential client configuration.
The second question is: why does it require
AddAuthentication
? I add authentication to my app anyway, so it's not a problem for me, but still. As far as I understood, the main difference betweenAddApp
andAddApi
is that the former doesn't add the authentication schema, and doesn't authorize the api users. So it shouldn't require theAuthenticationBuilder
, should it?The third question is about
Instance
. Why do I need to explicitly provide it? Shouldn'thttps://login.microsoftonline.com/
be the obvious default? Could you at least provide it in some public constant somewhere, so that I did not need to hardcode it myself.And the last question is about duplication. I need to explicitly provide both
MicrosoftIdentityOptions
andConfidentialClientApplicationOptions
with the same set of parameters. Why confidential client setup doesn't copy the parameters from microsoft identity? It does copyClientSecret
, but nothing else. Why?The text was updated successfully, but these errors were encountered: