hi
getEnvConfig
https://support.abp.io/QA/Questions/4159/Host-Angular-build-in-wwwroot-fails-to-call-to-getEnvConfig#answer-278584c6-a838-d379-1b8e-3a0804c1174f
hi
You can try to override the GetStatusCode method of DefaultHttpExceptionStatusCodeFinder
https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.AspNetCore/Volo/Abp/AspNetCore/ExceptionHandling/DefaultHttpExceptionStatusCodeFinder.cs#L70-L73
hi
I am unable to understand your needs.
This is a JS code problem in the UI. I can't understand it through the picture.
Can you share a simple project and steps?
liming.ma@volosoft.com
hi
Please try a host user. I think your multi-tenant middleware is not working correctly.
What is the content of your authserver module code now?
hi
redirect_uri was invalid: 'https://apihost-test-007.azurewebsites.net/swagger/oauth2-redirect.html'
[INF] The authorization request was successfully extracted:
{
"response_type":"code",
"client_id":"CommissionManagement_Swagger",
"redirect_uri":"https://apihost-test-007.azurewebsites.net/swagger/oauth2-redirect.html",
"scope":"CommissionManagement",
"state":"V2VkIEphbiAxNyAyMDI0IDE5OjEyOjU0IEdNVCswMTAwIChNaXR0ZWxldXJvcMOkaXNjaGUgTm9ybWFsemVpdCk="
}
Client validation failed because 'https://apihost-test-007.azurewebsites.net/swagger/oauth2-redirect.html' was not a valid redirect_uri for CommissionManagement_Swagger.
hi
IDX10214: Audience validation failed. A Audiences: 'IdentityService, AdministrationService, SaasService, EmployeeService, IncidentService, AttachmentService, ObservationsService, ActionService, UserTaskService, HSEPlansService, NCRService, CustomerService, InspectionService, Forms, FileManagement, AuthServer, RMService, TMService, PTWService'.
Did not match: validationParameters.ValidAudience: 'AccountService' or validationParameters.ValidAudiences: 'null'.
Your access_token seems to be missing the AccountService audience.
hi
System.Security.Cryptography.CryptographicException: The system cannot find the file specified. at System.Security.Cryptography.CngKey.Open(String keyName, CngProvider provider, CngKeyOpenOptions openOptions)
Please check and make sure the authserver.pfx file exists on your azure.
What is the result when user have the perrmison?
hi
Access is denied.
It seems the application unable read openiddict.pfx file
What is the code of RedirectClientMiddleware?
If it will control the HTTP request it must be before UseConfiguredEndpoints