@@ -84,7 +84,7 @@ public SignInManager(UserManager<TUser> userManager,
8484 /// <summary>
8585 /// The authentication scheme to sign in with. Defaults to <see cref="IdentityConstants.ApplicationScheme"/>.
8686 /// </summary>
87- public string PrimaryAuthenticationScheme { get ; set ; } = IdentityConstants . ApplicationScheme ;
87+ public string AuthenticationScheme { get ; set ; } = IdentityConstants . ApplicationScheme ;
8888
8989 /// <summary>
9090 /// The <see cref="HttpContext"/> used.
@@ -122,7 +122,7 @@ public virtual bool IsSignedIn(ClaimsPrincipal principal)
122122 {
123123 ArgumentNullException . ThrowIfNull ( principal ) ;
124124 return principal . Identities != null &&
125- principal . Identities . Any ( i => i . AuthenticationType == PrimaryAuthenticationScheme ) ;
125+ principal . Identities . Any ( i => i . AuthenticationType == AuthenticationScheme ) ;
126126 }
127127
128128 /// <summary>
@@ -161,7 +161,7 @@ public virtual async Task<bool> CanSignInAsync(TUser user)
161161 /// <returns>The task object representing the asynchronous operation.</returns>
162162 public virtual async Task RefreshSignInAsync ( TUser user )
163163 {
164- var auth = await Context . AuthenticateAsync ( PrimaryAuthenticationScheme ) ;
164+ var auth = await Context . AuthenticateAsync ( AuthenticationScheme ) ;
165165 IList < Claim > claims = Array . Empty < Claim > ( ) ;
166166
167167 var authenticationMethod = auth ? . Principal ? . FindFirst ( ClaimTypes . AuthenticationMethod ) ;
@@ -237,7 +237,7 @@ public virtual async Task SignInWithClaimsAsync(TUser user, AuthenticationProper
237237 {
238238 userPrincipal . Identities . First ( ) . AddClaim ( claim ) ;
239239 }
240- await Context . SignInAsync ( PrimaryAuthenticationScheme ,
240+ await Context . SignInAsync ( AuthenticationScheme ,
241241 userPrincipal ,
242242 authenticationProperties ?? new AuthenticationProperties ( ) ) ;
243243
@@ -250,7 +250,7 @@ await Context.SignInAsync(PrimaryAuthenticationScheme,
250250 /// </summary>
251251 public virtual async Task SignOutAsync ( )
252252 {
253- await Context . SignOutAsync ( PrimaryAuthenticationScheme ) ;
253+ await Context . SignOutAsync ( AuthenticationScheme ) ;
254254
255255 if ( await _schemes . GetSchemeAsync ( IdentityConstants . ExternalScheme ) != null )
256256 {
@@ -669,9 +669,9 @@ public virtual async Task<SignInResult> ExternalLoginSignInAsync(string loginPro
669669 }
670670
671671 /// <summary>
672- /// Gets a collection of <see cref="AuthenticationScheme"/>s for the known external login providers.
672+ /// Gets a collection of <see cref="Authentication. AuthenticationScheme"/>s for the known external login providers.
673673 /// </summary>
674- /// <returns>A collection of <see cref="AuthenticationScheme"/>s for the known external login providers.</returns>
674+ /// <returns>A collection of <see cref="Authentication. AuthenticationScheme"/>s for the known external login providers.</returns>
675675 public virtual async Task < IEnumerable < AuthenticationScheme > > GetExternalAuthenticationSchemesAsync ( )
676676 {
677677 var schemes = await _schemes . GetAllSchemesAsync ( ) ;
0 commit comments