yavsc/Yavsc/AuthorizationServer/TokenAuthOptions.cs

26 lines
707 B
C#
Raw Normal View History

2016-06-09 01:29:23 +02:00
using System;
2016-05-17 18:22:18 +02:00
using System.IdentityModel.Tokens;
namespace Yavsc
{
2016-06-09 01:29:23 +02:00
[Obsolete("Use OAuth2AppSettings instead")]
2016-05-17 18:22:18 +02:00
public class TokenAuthOptions
{
2016-06-06 12:38:11 +02:00
/// <summary>
/// Public's identification
/// </summary>
/// <returns></returns>
2016-05-17 18:22:18 +02:00
public string Audience { get; set; }
2016-06-06 12:38:11 +02:00
/// <summary>
/// Identity authority
/// </summary>
/// <returns></returns>
2016-05-17 18:22:18 +02:00
public string Issuer { get; set; }
2016-06-06 12:38:11 +02:00
/// <summary>
/// Signin key and signature algotythm
/// </summary>
/// <returns></returns>
2016-05-17 18:22:18 +02:00
public SigningCredentials SigningCredentials { get; set; }
2016-06-06 12:38:11 +02:00
public int ExpiresIn { get; set; }
2016-05-17 18:22:18 +02:00
}
}