@@ -84,7 +84,7 @@ public SignInManager(UserManager<TUser> userManager,
84
84
/// <summary>
85
85
/// The authentication scheme to sign in with. Defaults to <see cref="IdentityConstants.ApplicationScheme"/>.
86
86
/// </summary>
87
- public string PrimaryAuthenticationScheme { get ; set ; } = IdentityConstants . ApplicationScheme ;
87
+ public string AuthenticationScheme { get ; set ; } = IdentityConstants . ApplicationScheme ;
88
88
89
89
/// <summary>
90
90
/// The <see cref="HttpContext"/> used.
@@ -122,7 +122,7 @@ public virtual bool IsSignedIn(ClaimsPrincipal principal)
122
122
{
123
123
ArgumentNullException . ThrowIfNull ( principal ) ;
124
124
return principal . Identities != null &&
125
- principal . Identities . Any ( i => i . AuthenticationType == PrimaryAuthenticationScheme ) ;
125
+ principal . Identities . Any ( i => i . AuthenticationType == AuthenticationScheme ) ;
126
126
}
127
127
128
128
/// <summary>
@@ -161,7 +161,7 @@ public virtual async Task<bool> CanSignInAsync(TUser user)
161
161
/// <returns>The task object representing the asynchronous operation.</returns>
162
162
public virtual async Task RefreshSignInAsync ( TUser user )
163
163
{
164
- var auth = await Context . AuthenticateAsync ( PrimaryAuthenticationScheme ) ;
164
+ var auth = await Context . AuthenticateAsync ( AuthenticationScheme ) ;
165
165
IList < Claim > claims = Array . Empty < Claim > ( ) ;
166
166
167
167
var authenticationMethod = auth ? . Principal ? . FindFirst ( ClaimTypes . AuthenticationMethod ) ;
@@ -237,7 +237,7 @@ public virtual async Task SignInWithClaimsAsync(TUser user, AuthenticationProper
237
237
{
238
238
userPrincipal . Identities . First ( ) . AddClaim ( claim ) ;
239
239
}
240
- await Context . SignInAsync ( PrimaryAuthenticationScheme ,
240
+ await Context . SignInAsync ( AuthenticationScheme ,
241
241
userPrincipal ,
242
242
authenticationProperties ?? new AuthenticationProperties ( ) ) ;
243
243
@@ -250,7 +250,7 @@ await Context.SignInAsync(PrimaryAuthenticationScheme,
250
250
/// </summary>
251
251
public virtual async Task SignOutAsync ( )
252
252
{
253
- await Context . SignOutAsync ( PrimaryAuthenticationScheme ) ;
253
+ await Context . SignOutAsync ( AuthenticationScheme ) ;
254
254
255
255
if ( await _schemes . GetSchemeAsync ( IdentityConstants . ExternalScheme ) != null )
256
256
{
@@ -669,9 +669,9 @@ public virtual async Task<SignInResult> ExternalLoginSignInAsync(string loginPro
669
669
}
670
670
671
671
/// <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.
673
673
/// </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>
675
675
public virtual async Task < IEnumerable < AuthenticationScheme > > GetExternalAuthenticationSchemesAsync ( )
676
676
{
677
677
var schemes = await _schemes . GetAllSchemesAsync ( ) ;
0 commit comments