question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] Simplify AuthenticationBuilder.AddSignIn extension method for web app

See original GitHub issue

Is your feature request related to a problem? Please describe. On the AddSignIn method signature https://github.com/AzureAD/microsoft-identity-web/blob/7d33e9f4351ac679382cd3c0f1bc61140376e34f/src/Microsoft.Identity.Web/WebAppAuthenticationBuilderExtensions.cs#L60-L66 is it necessary to have both the configureOpenIdConnectOptions and configureMicrosoftIdentityOptions parameters?

Given that MicrosoftIdentityOptions inherits from OpenIdConnectOptions I find this confusing as it is not clear which takes precedence or even if the inherited options must be set in the configureOpenIdConnectOptions delegate or if setting everything in the configureMicrosoftIdentityOptions delegate is fine.

Describe the solution you’d like Remove the configureOpenIdConnectOptions parameter so there is a single point of configuration.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
jmprieurcommented, Jun 12, 2020

I wonder if we could not use an approach such as this one: https://github.com/dotnet/aspnetcore/blob/master/src/Azure/AzureAD/Authentication.AzureAD.UI/src/AzureADOpenIdConnectOptionsConfiguration.cs where the OpenIdConnectOptions were computed from the AzureADOptions in AzureAD.UI

cc: @jennyf19 @pmaytak @henrik-me

0reactions
jennyf19commented, Jul 13, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Microsoft Identity Web
Helps creating protected web apps and web APIs with Microsoft identity platform and Azure AD B2C - Microsoft Identity Web ...
Read more >
Using C# Extension Methods for Auth0 Authentication
C# extension methods let you easily add new functionality to existing classes. Learn how you can leverage them to simplify the Auth0 configuration...
Read more >
'AuthenticationBuilder' does not contain a definition for ' ...
Net 5 application but I'm having some trouble understanding how to wire things up using the .Net 6 "simplified" startup. I've included both:...
Read more >
c# - AuthenticationBuilder does not contain a definition for ...
I had a similar error but for me it was: CS1061 'AuthenticationBuilder' does not contain a definition for 'AddGoogle' and no accessible ...
Read more >
Enable your ASP.NET Core web app to sign in users and ...
Open your web browser and make a request to the app at url https://localhost:44321 . The app immediately attempts to authenticate you via...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found