Browse Source

fixed angular login problem

pull/112/head
Galip Tolga Erdem 4 years ago
parent
commit
525a83bfc5
  1. 28
      apps/angular/src/index.html
  2. 1
      apps/auth-server/src/EShopOnAbp.AuthServer/EShopOnAbpAuthServerModule.cs
  3. 1
      etc/docker/nginx/dynamic-env.json

28
apps/angular/src/index.html

@ -1,16 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>EShopOnAbp</title>
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
</head>
<body class="bg-light">
<app-root>
<div class="donut centered"></div>
</app-root>
</body>
<head>
<meta charset="utf-8" />
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
<title>EShopOnAbp</title>
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
</head>
<body class="bg-light">
<app-root>
<div class="donut centered"></div>
</app-root>
</body>
</html>

1
apps/auth-server/src/EShopOnAbp.AuthServer/EShopOnAbpAuthServerModule.cs

@ -78,6 +78,7 @@ public class EShopOnAbpAuthServerModule : AbpModule
var hostingEnvironment = context.Services.GetHostingEnvironment();
var configuration = context.Services.GetConfiguration();
ConfigureSameSiteCookiePolicy(context);
ConfigureSwagger(context, configuration);
context.Services.AddAuthentication()

1
etc/docker/nginx/dynamic-env.json

@ -12,7 +12,6 @@
"responseType": "code",
"scope": "offline_access openid profile email phone AccountService IdentityService AdministrationService CatalogService OrderingService",
"strictDiscoveryDocumentValidation": false,
"skipIssuerCheck": true,
"requireHttps": false
},
"apis": {

Loading…
Cancel
Save