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