ABP Framework version: v8.2.0
UI Type: MVC
Database System: EF Core (SQL Server)
Tiered (for MVC) or Auth Server Separated (for Angular): yes/no
Exception message and full stack trace:
Steps to reproduce the issue:
I have a tiered application. i am treating web as a admin website and public.web as public website. i want to configure it in a way so that the user who have permission to view only public website cannot open admin website. how can i configure this and where should i give permissions.
I dont want any public user to enter admin website.
I want to configure and integrate PayU payment gateway in my solution. don't want to give option for gateway selection i only have PayU as gateway. I have installed the module in all the projects. How can i configure it in my web.public project pages.
Public Web logs
[09:57:07 INF] Start processing HTTP request GET https://xxxx.azurewebsites.net/host/api/cms-kit-public/pages/exist?slug=health&api-version=1.0 [09:57:07 INF] Sending HTTP request GET https://xxxx.azurewebsites.net/host/api/cms-kit-public/pages/exist?slug=health&api-version=1.0 [09:57:09 INF] Received HTTP response headers after 2111.9678ms - 200 [09:57:09 INF] End processing HTTP request after 2112.1676ms - 200 [09:57:09 INF] Request finished HTTP/1.1 GET https://xxxx.azurewebsites.net/health - 302 0 null 2322.1667ms [09:57:09 INF] Request reached the end of the middleware pipeline without being handled by application code. Request path: GET https://xxxx.azurewebsites.net/health, Response status code: 302 [09:57:14 INF] Request starting HTTP/1.1 GET http://xxxx.azurewebsites.net/health - null null [09:57:15 WRN] Could not find IdentityClientConfiguration for CmsKitPublic. Either define a configuration for CmsKitPublic or set a default configuration. [09:57:15 INF] Start processing HTTP request GET https://xxxx.azurewebsites.net/host/api/cms-kit-public/pages/exist?slug=health&api-version=1.0 [09:57:15 INF] Sending HTTP request GET https://xxxx.azurewebsites.net/host/api/cms-kit-public/pages/exist?slug=health&api-version=1.0
API Host logs
[09:59:20 INF] Start processing HTTP request GET http://127.0.0.1:4882/health-status [09:59:20 INF] Sending HTTP request GET http://127.0.0.1:4882/health-status [09:59:20 INF] Request starting HTTP/1.1 GET http://127.0.0.1:4882/health-status - null null [09:59:20 ERR] 'MS-ASPNETCORE-TOKEN' does not match the expected pairing token '824e115b-0788-4d57-a6e3-f8eff97b788c', request rejected. [09:59:20 INF] Request finished HTTP/1.1 GET http://127.0.0.1:4882/health-status - 400 0 null 0.0847ms [09:59:20 INF] Received HTTP response headers after 0.5643ms - 400 [09:59:20 INF] End processing HTTP request after 0.8178ms - 400 [09:59:20 INF] Notification is sent on same window time.
Auth server logs
[09:48:19 INF] Request finished HTTP/1.1 POST https://xxxx.azurewebsites.net/auth/connect/introspect - 200 348 application/json;charset=UTF-8 2953.6649ms [09:48:22 INF] Request starting HTTP/1.1 GET http://xxxx.azurewebsites.net/auth/api/account/profile-picture-file/91283ec6-f040-01b3-b070-3a0fb801b1ba?api-version=1.0 - null null [09:48:22 INF] Executing endpoint 'Volo.Abp.Account.AccountController.GetProfilePictureFileAsync (Volo.Abp.Account.Pro.Public.HttpApi)' [09:48:22 INF] Route matched with {area = "account", action = "GetProfilePictureFile", controller = "Account", page = ""}. Executing controller action with signature System.Threading.Tasks.Task
1[Volo.Abp.Content.IRemoteStreamContent] GetProfilePictureFileAsync(System.Guid) on controller Volo.Abp.Account.AccountController (Volo.Abp.Account.Pro.Public.HttpApi). [09:48:22 INF] Executing action method Volo.Abp.Account.AccountController.GetProfilePictureFileAsync (Volo.Abp.Account.Pro.Public.HttpApi) - Validation state: Valid [09:48:24 INF] Executed action method Volo.Abp.Account.AccountController.GetProfilePictureFileAsync (Volo.Abp.Account.Pro.Public.HttpApi), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 1929.5354ms. [09:48:24 INF] Executing ObjectResult, writing value of type 'Volo.Abp.Content.RemoteStreamContent'. [09:48:24 INF] Executed action Volo.Abp.Account.AccountController.GetProfilePictureFileAsync (Volo.Abp.Account.Pro.Public.HttpApi) in 1940.7107ms [09:48:24 INF] Executed endpoint 'Volo.Abp.Account.AccountController.GetProfilePictureFileAsync (Volo.Abp.Account.Pro.Public.HttpApi)' [09:48:24 INF] Request finished HTTP/1.1 GET https://xxxx.azurewebsites.net/auth/api/account/profile-picture-file/91283ec6-f040-01b3-b070-3a0fb801b1ba?api-version=1.0 - 200 908285 image/jpeg 1956.6045ms [09:49:39 INF] Request starting HTTP/1.1 GET http://xxxx.azurewebsites.net/auth/api/account/profile-picture-file/91283ec6-f040-01b3-b070-3a0fb801b1ba?api-version=1.0 - null null [09:49:39 INF] Executing endpoint 'Volo.Abp.Account.AccountController.GetProfilePictureFileAsync (Volo.Abp.Account.Pro.Public.HttpApi)' [09:49:39 INF] Route matched with {area = "account", action = "GetProfilePictureFile", controller = "Account", page = ""}. Executing controller action with signature System.Threading.Tasks.Task
1[Volo.Abp.Content.IRemoteStreamContent] GetProfilePictureFileAsync(System.Guid) on controller Volo.Abp.Account.AccountController (Volo.Abp.Account.Pro.Public.HttpApi). [09:49:39 INF] Executing action method Volo.Abp.Account.AccountController.GetProfilePictureFileAsync (Volo.Abp.Account.Pro.Public.HttpApi) - Validation state: Valid [09:49:43 INF] Executed action method Volo.Abp.Account.AccountController.GetProfilePictureFileAsync (Volo.Abp.Account.Pro.Public.HttpApi), returned result Microsoft.AspNetCore.Mvc.ObjectResult in 3792.0603ms. [09:49:43 INF] Executing ObjectResult, writing value of type 'Volo.Abp.Content.RemoteStreamContent'. [09:49:43 INF] Executed action Volo.Abp.Account.AccountController.GetProfilePictureFileAsync (Volo.Abp.Account.Pro.Public.HttpApi) in 3806.1067ms [09:49:43 INF] Executed endpoint 'Volo.Abp.Account.AccountController.GetProfilePictureFileAsync (Volo.Abp.Account.Pro.Public.HttpApi)' [09:49:43 INF] Request finished HTTP/1.1 GET https://xxxx.azurewebsites.net/auth/api/account/profile-picture-file/91283ec6-f040-01b3-b070-3a0fb801b1ba?api-version=1.0 - 200 908285 image/jpeg 3812.0837ms [09:52:40 INF] Lock is acquired for TokenCleanupBackgroundWorker [09:52:40 INF] Start cleanup. [09:52:40 INF] Start cleanup tokens. [09:52:41 INF] Start cleanup authorizations. [09:52:42 INF] Lock is released for TokenCleanupBackgroundWorker
Web logs
Request starting HTTP/1.1 GET http://xxxx.azurewebsites.net/admin/Carts - null null [09:49:12 INF] Executing endpoint '/Carts/Index' [09:49:12 INF] Route matched with {page = "/Carts/Index", action = "", controller = "", area = ""}. Executing page /Carts/Index [09:49:12 INF] Skipping the execution of current filter as its not the most effective filter implementing the policy Microsoft.AspNetCore.Mvc.ViewFeatures.IAntiforgeryPolicy [09:49:12 INF] Executing handler method Luvo.Web.Pages.Carts.IndexModelBase.OnGetAsync - ModelState is Valid [09:49:12 INF] Executed handler method OnGetAsync, returned result . [09:49:12 INF] Executing an implicit handler method - ModelState is Valid [09:49:12 INF] Executed an implicit handler method, returned result Microsoft.AspNetCore.Mvc.RazorPages.PageResult. [09:49:12 INF] Bundling __bundles/Pages.Carts.index.A11EC31A2816F5A47A7C7BECC94C4D55.js (1 files) [09:49:13 INF] > Minified /Pages/Carts/index.js (4780 bytes -> 2201 bytes) [09:49:13 INF] Bundled __bundles/Pages.Carts.index.A11EC31A2816F5A47A7C7BECC94C4D55.js (2204 bytes) [09:49:13 INF] Executed page /Carts/Index in 60.941ms [09:49:13 INF] Executed endpoint '/Carts/Index' [09:49:13 INF] Request finished HTTP/1.1 GET https://xxxx.azurewebsites.net/admin/Carts - 200 null text/html; charset=utf-8 275.8597ms [09:49:13 INF] Request starting HTTP/1.1 GET http://xxxx.azurewebsites.net/admin/__bundles/Lepton.Global.CB0D5B09BE6F106B497F8CE2353AE3CC.css?_v=638455743259205854 - null null [09:49:13 INF] The file /__bundles/Lepton.Global.CB0D5B09BE6F106B497F8CE2353AE3CC.css was not modified [09:49:13 INF] Request finished HTTP/1.1 GET https://xxxx.azurewebsites.net/admin/__bundles/Lepton.Global.CB0D5B09BE6F106B497F8CE2353AE3CC.css?_v=638455743259205854 - 304 null text/css 1.2781ms [09:49:13 INF] Request starting HTTP/1.1 GET http://xxxx.azurewebsites.net/admin/__bundles/Lepton.Global.1332F9729BF2DA679FDACFD1C644B9BD.js?_v=638455743278181600 - null null [09:49:13 INF] The file /__bundles/Lepton.Global.1332F9729BF2DA679FDACFD1C644B9BD.js was not modified [09:49:13 INF] Request finished HTTP/1.1 GET https://xxxx.azurewebsites.net/admin/__bundles/Lepton.Global.1332F9729BF2DA679FDACFD1C644B9BD.js?_v=638455743278181600 - 304 null application/javascript 1.3463ms [09:49:13 INF] Request starting HTTP/1.1 GET http://xxxx.azurewebsites.net/admin/Abp/ApplicationConfigurationScript - null null [09:49:13 INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController.Get (Volo.Abp.AspNetCore.Mvc)' [09:49:13 INF] Route matched with {area = "Abp", action = "Get", controller = "AbpApplicationConfigurationScript", page = ""}. Executing controller action with signature System.Threading.Tasks.Task
1[Microsoft.AspNetCore.Mvc.ActionResult] Get() on controller Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController (Volo.Abp.AspNetCore.Mvc). [09:49:13 INF] Executing action method Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController.Get (Volo.Abp.AspNetCore.Mvc) - Validation state: Valid [09:49:13 INF] Executed action method Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController.Get (Volo.Abp.AspNetCore.Mvc), returned result Microsoft.AspNetCore.Mvc.ContentResult in 214.5988ms. [09:49:13 INF] Executing ContentResult with HTTP Response ContentType of application/javascript [09:49:13 INF] Executed action Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController.Get (Volo.Abp.AspNetCore.Mvc) in 216.3628ms [09:49:13 INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationScriptController.Get (Volo.Abp.AspNetCore.Mvc)' [09:49:13 INF] Request finished HTTP/1.1 GET https://xxxx.azurewebsites.net/admin/Abp/ApplicationConfigurationScript - 200 8658 application/javascript 218.6837ms [09:49:14 INF] Request starting HTTP/1.1 GET http://xxxx.azurewebsites.net/admin/Abp/ApplicationLocalizationScript?cultureName=en - null null [09:49:14 INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController.GetAsync (Volo.Abp.AspNetCore.Mvc)' [09:49:14 INF] Route matched with {area = "Abp", action = "Get", controller = "AbpApplicationLocalizationScript", page = ""}. Executing controller action with signature System.Threading.Tasks.Task
1[Microsoft.AspNetCore.Mvc.ActionResult] GetAsync(Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.ApplicationLocalizationRequestDto) on controller Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController (Volo.Abp.AspNetCore.Mvc). [09:49:14 INF] Executing action method Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController.GetAsync (Volo.Abp.AspNetCore.Mvc) - Validation state: Valid [09:49:14 INF] Request starting HTTP/1.1 GET http://xxxx.azurewebsites.net/admin/Abp/ServiceProxyScript - null null [09:49:14 INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc)' [09:49:14 INF] Route matched with {area = "Abp", action = "GetAll", controller = "AbpServiceProxyScript", page = ""}. Executing controller action with signature Microsoft.AspNetCore.Mvc.ActionResult GetAll(Volo.Abp.AspNetCore.Mvc.ProxyScripting.ServiceProxyGenerationModel) on controller Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController (Volo.Abp.AspNetCore.Mvc). [09:49:14 INF] Executing action method Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc) - Validation state: Valid [09:49:14 INF] Executed action method Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc), returned result Microsoft.AspNetCore.Mvc.ContentResult in 5.5247ms. [09:49:14 INF] Executing ContentResult with HTTP Response ContentType of application/javascript [09:49:14 INF] Executed action Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc) in 6.7376ms [09:49:14 INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.ProxyScripting.AbpServiceProxyScriptController.GetAll (Volo.Abp.AspNetCore.Mvc)' [09:49:14 INF] Request finished HTTP/1.1 GET https://xxxx.azurewebsites.net/admin/Abp/ServiceProxyScript - 200 23503 application/javascript 8.7795ms [09:49:14 INF] Executed action method Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController.GetAsync (Volo.Abp.AspNetCore.Mvc), returned result Microsoft.AspNetCore.Mvc.ContentResult in 219.0603ms. [09:49:14 INF] Executing ContentResult with HTTP Response ContentType of application/javascript [09:49:14 INF] Executed action Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController.GetAsync (Volo.Abp.AspNetCore.Mvc) in 221.3792ms [09:49:14 INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.Localization.AbpApplicationLocalizationScriptController.GetAsync (Volo.Abp.AspNetCore.Mvc)' [09:49:14 INF] Request finished HTTP/1.1 GET https://xxxx.azurewebsites.net/admin/Abp/ApplicationLocalizationScript?cultureName=en - 200 97574 application/javascript 223.3158ms [09:49:14 INF] Request starting HTTP/1.1 GET http://xxxx.azurewebsites.net/admin/__bundles/0A8933CBA9502D82B30D3F2736E143D4.0A8933CBA9502D82B30D3F2736E143D4.js?_v=638455743278354860 - null null [09:49:14 INF] The file /__bundles/0A8933CBA9502D82B30D3F2736E143D4.0A8933CBA9502D82B30D3F2736E143D4.js was not modified [09:49:14 INF] Request finished HTTP/1.1 GET https://xxxx.azurewebsites.net/admin/__bundles/0A8933CBA9502D82B30D3F2736E143D4.0A8933CBA9502D82B30D3F2736E143D4.js?_v=638455743278354860 - 304 null application/javascript 1.2318ms [09:49:14 INF] Request starting HTTP/1.1 GET http://xxxx.azurewebsites.net/admin/__bundles/Pages.Carts.index.A11EC31A2816F5A47A7C7BECC94C4D55.js?_v=638455745530172974 - null null [09:49:14 INF] Sending file. Request path: '/__bundles/Pages.Carts.index.A11EC31A2816F5A47A7C7BECC94C4D55.js'. Physical path: 'N/A' [09:49:14 INF] Request finished HTTP/1.1 GET https://xxxx.azurewebsites.net/admin/__bundles/Pages.Carts.index.A11EC31A2816F5A47A7C7BECC94C4D55.js?_v=638455745530172974 - 200 2204 application/javascript 1.2487ms
Everything is working properly when running the application locally using visual studio. Error appears when we deploy it on azure web app. all 4 sites are configured on same domain as follows
error comes in web application which is (" https://xxxx.azurewebsites.net") after login when i try to add / create record, if there are no records then error comes on index page as well.
Error Message - unauthorized