Ejemplo n.º 1
0
 public static JwtBuilder GivenName(this JwtBuilder builder, string name) =>
 builder.AddClaim(ClaimName.GivenName, name);
Ejemplo n.º 2
0
 public static JwtBuilder FamilyName(this JwtBuilder builder, string lastname) =>
 builder.AddClaim(ClaimName.FamilyName, lastname);
Ejemplo n.º 3
0
 public static JwtBuilder VerifiedPhoneNumber(this JwtBuilder builder, string phone) =>
 builder.AddClaim(ClaimName.VerifiedPhoneNumber, phone);
Ejemplo n.º 4
0
 public static JwtBuilder VerifiedEmail(this JwtBuilder builder, string email) =>
 builder.AddClaim(ClaimName.VerifiedEmail, email);
Ejemplo n.º 5
0
 public static JwtBuilder Account(this JwtBuilder builder, string account) =>
 builder.AddClaim(ClaimName.Account, account);
Ejemplo n.º 6
0
 public static JwtBuilder NickName(this JwtBuilder builder, string nickname) =>
 builder.AddClaim(ClaimName.NickName, nickname);
Ejemplo n.º 7
0
 public static JwtBuilder Id(this JwtBuilder builder, long id) =>
 builder.Id(id.ToString(CultureInfo.InvariantCulture));
Ejemplo n.º 8
0
 public static JwtBuilder Subject(this JwtBuilder builder, string subject) =>
 builder.AddClaim(ClaimName.Subject, subject);
Ejemplo n.º 9
0
 public static JwtBuilder JwtId(this JwtBuilder builder, Guid id) =>
 builder.JwtId(id.ToString());
Ejemplo n.º 10
0
 public static JwtBuilder Id(this JwtBuilder builder, int id) =>
 builder.Id(id.ToString());
Ejemplo n.º 11
0
 public static JwtBuilder IssuedAt(this JwtBuilder builder, DateTime time) =>
 builder.AddClaim(ClaimName.IssuedAt, UnixEpoch.GetSecondsSinceAsString(time));
Ejemplo n.º 12
0
 public static JwtBuilder NotBefore(this JwtBuilder builder, DateTime time) =>
 builder.AddClaim(ClaimName.NotBefore, UnixEpoch.GetSecondsSinceAsString(time));
Ejemplo n.º 13
0
 public static JwtBuilder Audience(this JwtBuilder builder, string audience) =>
 builder.AddClaim(ClaimName.Audience, audience);
Ejemplo n.º 14
0
 public static JwtBuilder MiddleName(this JwtBuilder builder, string middleName) =>
 builder.AddClaim(ClaimName.MiddleName, middleName);
Ejemplo n.º 15
0
 public static JwtBuilder Id(this JwtBuilder builder, string id) =>
 builder.AddClaim(ClaimName.Id, id);
Ejemplo n.º 16
0
 public static JwtBuilder ExpirationTime(this JwtBuilder builder, DateTime time) =>
 builder.AddClaim(ClaimName.ExpirationTime, UnixEpoch.GetSecondsSinceAsString(time));
Ejemplo n.º 17
0
 public static JwtBuilder Issuer(this JwtBuilder builder, string issuer) =>
 builder.AddClaim(ClaimName.Issuer, issuer);