MEF & Settings
This commit is contained in:
@ -222,7 +222,6 @@ public static class HostingExtensions
|
||||
}
|
||||
private static IIdentityServerBuilder AddIdentityServer(WebApplicationBuilder builder)
|
||||
{
|
||||
//builder.Services.AddTransient<IProfileService,ProfileService>();
|
||||
var identityServerBuilder = builder.Services.AddIdentityServer(options =>
|
||||
{
|
||||
options.Events.RaiseErrorEvents = true;
|
||||
@ -232,12 +231,10 @@ public static class HostingExtensions
|
||||
|
||||
// see https://IdentityServer8.readthedocs.io/en/latest/topics/resources.html
|
||||
options.EmitStaticAudienceClaim = true;
|
||||
|
||||
})
|
||||
.AddInMemoryIdentityResources(Config.IdentityResources)
|
||||
.AddInMemoryClients(Config.Clients)
|
||||
.AddInMemoryApiScopes(Config.ApiScopes)
|
||||
// .AddProfileService<ProfileService>()
|
||||
.AddAspNetIdentity<ApplicationUser>()
|
||||
;
|
||||
if (builder.Environment.IsDevelopment())
|
||||
|
@ -19,7 +19,7 @@
|
||||
<environment names="Development">
|
||||
<script>
|
||||
var CREATE_PAYMENT_URL = 'http://pschneider.fr:85/api/payment/create';
|
||||
var EXECUTE_PAYMENT_URL = 'http://dev.pschneider.fr:85/api/payment/execute';
|
||||
var EXECUTE_PAYMENT_URL = 'http://pschneider.fr:85/api/payment/execute';
|
||||
var PAYPAL_ENV = 'sandbox';
|
||||
</script>
|
||||
</environment>
|
||||
|
@ -54,5 +54,4 @@ else
|
||||
<a class="nav-link" asp-controller="Account" asp-action="Login" asp-route-ReturnUrl="~/" >Login</a>
|
||||
</li>
|
||||
}
|
||||
using IdentityServer8.Extensions;
|
||||
#line default
|
||||
|
||||
|
@ -30,9 +30,10 @@ input[type='checkbox'] {
|
||||
min-height: 1em; }
|
||||
|
||||
.container {
|
||||
background-color: #00000040;
|
||||
background-color: #00000093;
|
||||
color: #fff;
|
||||
border-radius: 2em; }
|
||||
padding: .5em;
|
||||
margin: .5em; }
|
||||
|
||||
.post {
|
||||
background-color: #000000dd;
|
||||
@ -41,10 +42,10 @@ input[type='checkbox'] {
|
||||
border-radius: 2em;
|
||||
border: solid #441515a4 2pt; }
|
||||
|
||||
div.actiongroup {
|
||||
.actiongroup {
|
||||
float: right;
|
||||
margin: .5em; }
|
||||
|
||||
div.float-left {
|
||||
.float-left {
|
||||
float: left;
|
||||
margin: .5em; }
|
||||
|
@ -45,9 +45,10 @@ input[type='checkbox'] {
|
||||
}
|
||||
|
||||
.container {
|
||||
background-color: #00000040;
|
||||
background-color: #00000093;
|
||||
color: #fff;
|
||||
border-radius: 2em;
|
||||
padding: .5em;
|
||||
margin: .5em;
|
||||
}
|
||||
|
||||
.post {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"Site": {
|
||||
"Authority": "dev.pschneider.fr",
|
||||
"Authority": "localhost",
|
||||
"Title": "Yavsc dev",
|
||||
"Slogan": "Yavsc : WIP.",
|
||||
"Banner": "/images/yavsc.png",
|
||||
|
Reference in New Issue
Block a user