0
maxim@kolychev.msk.ru created
We can't configure TenantResolver for a project with Blazor separated IdentityServer
There are no sample for Blazor. Sample code for MVC-Tiered we found here https://github.com/abpframework/abp-samples/tree/master/DomainTenantResolver/MVC-TIERED
This code was added to IdentityServerModule:
context.Services.AddAbpStrictRedirectUriValidator();
context.Services.AddAbpClientConfigurationValidator();
context.Services.AddAbpWildcardSubdomainCorsPolicyService();
Configure<AbpTenantResolveOptions>(option => {
option.AddDomainTenantResolver("{0}.sportoteka.online");
});
to BlazorModule:
Configure<AbpTenantResolveOptions>(options => {
options.TenantResolvers.InsertAfter(
r => r is CurrentUserTenantResolveContributor,
new DomainTenantResolveContributor("{0}.sportoteka.info"));
});
sportoteka.info – client domain, sportoteka.online – Api and IdentityServer
- No problems with connection to host
- Adding *.sportoteka.info to appsetting and/or IdentitiServer.. Cors/Uris tables leads to 500 error Unauthorized Client
- Without this record we’ve got message in console Refused to display '' in a frame because it set 'X-Frame-Options' to 'sameorigin' and on login 500 error INVALID_REQUEST (see here https://test-sh.sportoteka.info )
- If I add real tenant – no errors but connection to host, not to tenant (https://test-vb.sportoteka.info)
What’s wrong? Could you add TenantResolver Blazor sample
4 Answer(s)
-
0
hi
We currently can't implement the above functions in wasm due to the limitation of blazor.
-
0
Hi
When will it be possible? Are there other authorization options for wasm?
Maxim
-
0
-
0
This question has been automatically marked as stale because it has not had recent activity.