Пример #1
0
 /// <summary>
 /// Extension method for SignIn using the <see cref="AuthenticationOptions.DefaultSignInScheme"/>.
 /// </summary>
 /// <param name="context">The <see cref="ProtoContext"/> context.</param>
 /// <param name="principal">The user.</param>
 /// <param name="properties">The <see cref="AuthenticationProperties"/> properties.</param>
 /// <returns>The task.</returns>
 public static Task SignInAsync(this ProtoContext context, ClaimsPrincipal principal, AuthenticationProperties properties) =>
 context.SignInAsync(scheme: null, principal: principal, properties: properties);
Пример #2
0
 /// <summary>
 /// Extension method for SignIn using the <see cref="AuthenticationOptions.DefaultSignInScheme"/>.
 /// </summary>
 /// <param name="context">The <see cref="ProtoContext"/> context.</param>
 /// <param name="principal">The user.</param>
 /// <returns>The task.</returns>
 public static Task SignInAsync(this ProtoContext context, ClaimsPrincipal principal) =>
 context.SignInAsync(scheme: null, principal: principal, properties: null);