-
Notifications
You must be signed in to change notification settings - Fork 217
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
[Feature Request] Rename AddSignIn to AddMicrosoft etc ... #193
Comments
I agree with your opinions on all options. I like |
AddGoogle. AddFacebook et al are the built in ones. Because it hangs off services.AddAuthentication().AddProvider it makes some sense services.AddSignIn is weird, we don't generally have that, we hang them off .AddAuthentication |
Yep, chaining off AddAuthentication makes it clearer.
I mentioned this pattern in #90 - if we should use AuthenticationBuilder instead of IServiceCollection. |
On #90 I proposed removing How about
|
@Tratcher nice suggestions. I think just starting w/ |
Included in 0.2.0-preview release |
Is your feature request related to a problem? Please describe.
ASP.NET core ships with several authentication provides (Google, Twitter, MicrosoftAcount (meaning MSA), Facebook).
https://docs.microsoft.com/en-us/aspnet/core/security/authentication/social/google-logins?view=aspnetcore-3.1#multiple-authentication-providers
As Microsoft.Identity.Web is going to be available with the default ASP.NET Core 5.0 templates, the request from the ASP.NET Core team is to rename AddSignIn, AddProtectedWebApi, etc ... to something containing Microsoft, for instance AddSignInWithMicrosoft or AddMicrosoftSignIn etc ...
Describe the solution you'd like
Go with option 3 (below): use Microsoft
Describe alternatives you've considered
Option 1: use MicrosoftIdentityPlatform
Ideally we'd want to mention the Microsoft identity platform, but this is too long.
Option 2: use AzureAD
But:
Option 3: use Microsoft
AddSignIn on the services => AddMicrosoftSignIn
AddSignIn on the AuthenticationBuilder could become just AddMicrosoft (would be like the other identity providers, AddGoogle as explained here)
AddProtectedWebApi => AddMicrosoftProtectedWebApi or AddProtectedWebApiWithMicrosoft
For the methods involving incrementally adding the ability to call downstream APIs, the question is to keep their current name, or also add Microsoft.
AddWebAppCallProtectedWebApi => AddMicrosoftWebAppCallProtectedWebApi
AddProtectedWebApiCallsWebApi => AddMicrosoftWebApiCallsWebApi
Work to do
The text was updated successfully, but these errors were encountered: