/
githubmirror
/
aspnetcore
Обзор
Документация
Войти
/
githubmirror
/
aspnetcore
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Identity/test/Shared/PocoModel/PocoUserToken.cs
38 строк
1 KB
Mackinnon Buck
Add passkeys to ASP.NET Core Identity (#62112)
25 июн 2025, 20:35
Не верифицирован
25 июн 2025, 20:35
82de6f4
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #nullable disable namespace Microsoft.AspNetCore.Identity.Test; /// <summary> /// Entity type for a user's token /// </summary> public class PocoUserToken : PocoUserToken<string> { } /// <summary> /// Entity type for a user's token /// </summary> /// <typeparam name="TKey"></typeparam> public class PocoUserToken<TKey> where TKey : IEquatable<TKey> { /// <summary> /// The login provider for the login (i.e. facebook, google) /// </summary> public virtual string LoginProvider { get; set; } /// <summary> /// Key representing the login for the provider /// </summary> public virtual string TokenName { get; set; } /// <summary> /// Display name for the login /// </summary> public virtual string TokenValue { get; set; } /// <summary> /// User Id for the user who owns this login /// </summary> public virtual TKey UserId { get; set; } }