You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
908 B
C#
36 lines
908 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using Microsoft.IdentityModel.Tokens;
|
|
namespace Common.Authentication
|
|
{
|
|
/// <summary>
|
|
/// jwt身份认证发行者实体属性
|
|
/// </summary>
|
|
public class JwtTokenProviderOptions
|
|
{
|
|
/// <summary>
|
|
/// 发行者
|
|
/// </summary>
|
|
public string Issuer { get; set; }
|
|
/// <summary>
|
|
/// 订阅者
|
|
/// </summary>
|
|
public string Audience { get; set; }
|
|
/// <summary>
|
|
/// 过期的时间间隔
|
|
/// </summary>
|
|
public TimeSpan Expiration { get; set; } = TimeSpan.FromDays(1);
|
|
|
|
/// <summary>
|
|
/// 私钥密钥
|
|
/// </summary>
|
|
public string Secretkey { get; set; }
|
|
|
|
/// <summary>
|
|
/// 签名证书
|
|
/// </summary>
|
|
public SigningCredentials SigningCredentials { get; set; }
|
|
}
|
|
}
|