2018-10-26 07:22:53 +02:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace Teknik.Configuration
|
|
|
|
|
{
|
|
|
|
|
public class IdentityServerConfig
|
|
|
|
|
{
|
2019-01-29 03:19:01 +01:00
|
|
|
|
public string Host { get; set; }
|
2018-10-26 07:22:53 +02:00
|
|
|
|
public string Authority { get; set; }
|
|
|
|
|
|
|
|
|
|
public string ClientId { get; set; }
|
|
|
|
|
public string ClientSecret { get; set; }
|
|
|
|
|
public List<string> RedirectUris { get; set; }
|
|
|
|
|
public List<string> PostLogoutRedirectUris { get; set; }
|
2019-01-27 05:40:18 +01:00
|
|
|
|
public List<string> AllowedCorsOrigins { get; set; }
|
2018-10-26 07:22:53 +02:00
|
|
|
|
|
|
|
|
|
public string APIName { get; set; }
|
|
|
|
|
public string APISecret { get; set; }
|
|
|
|
|
|
2021-07-13 05:21:50 +02:00
|
|
|
|
public string SigningCertificate { get; set; }
|
|
|
|
|
|
2018-10-26 07:22:53 +02:00
|
|
|
|
public IdentityServerConfig()
|
|
|
|
|
{
|
2019-01-29 03:19:01 +01:00
|
|
|
|
Host = "localhost:5002";
|
2018-10-26 07:22:53 +02:00
|
|
|
|
Authority = "https://localhost:5002";
|
|
|
|
|
ClientId = "mvc.client";
|
|
|
|
|
ClientSecret = "mysecret";
|
|
|
|
|
RedirectUris = new List<string>();
|
|
|
|
|
PostLogoutRedirectUris = new List<string>();
|
2019-01-27 05:40:18 +01:00
|
|
|
|
AllowedCorsOrigins = new List<string>();
|
2018-10-26 07:22:53 +02:00
|
|
|
|
APIName = "api";
|
|
|
|
|
APISecret = "secret";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|