Activities of "maxim@kolychev.msk.ru"

  • ABP Framework version: v7.3.0
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace: No Exception

Code In DocManager Class:

`

    private readonly IBlobContainer _docContainer;   
    ...

    public async Task SaveFileAsync(string fileName, Stream stream, bool overrideExisting)
    {
        //await _docContainer.SaveAsync(fileName, stream, overrideExisting: overrideExisting);
        //Work fine with abp v7.2.2
        //After upgrade to abp v7.3 save 0 bytes

        var content = await stream.GetAllBytesAsync();
        await _docContainer.SaveAsync(fileName, content, overrideExisting: overrideExisting);
        //Work fine!
    }`

Code in DomainModule class

    Configure<AbpBlobStoringOptions>(options =>
    {
        options.Containers.ConfigureDefault(container =>
        {
            container.UseFileSystem(fileSystem =>
            {
                fileSystem.BasePath = configuration["App:BlobBasePath"] ?? DocumentConsts.DefaultBlobBasePath;
            });
        });
    });
  • ABP Framework version: v7.1.0
  • UI type: MVC

After update to abp v7.1 soft badges looks wrong

Even on demo LepthonX site https://x.leptontheme.com/side-menu/components/bootstrap/badge

Hi,

v.4.3.1 Local provider

This is my code for TenantCreatedHandler. It's triggered

    public class TenantCreatedHandler : IDistributedEventHandler<TenantCreatedEto>, ITransientDependency
    {
        private readonly ITenantRepository _tenantRepository;

        public TenantCreatedHandler(ITenantRepository tenantRepository)
        {
            _tenantRepository = tenantRepository;
        }


        public async Task HandleEventAsync(TenantCreatedEto eto)
        {
            Tenant tenant = await _tenantRepository.GetAsync(eto.Id);
            ...

`

This event handler don't work

public class TenantUpdatedHandler : IDistributedEventHandler<EntityUpdatedEto<TenantEto>>, ITransientDependency
    {
        public async Task HandleEventAsync(EntityUpdatedEto<TenantEto> eto)
        {
            //Not triggered
        }
    }

The problem is solved. Thank you

2021-06-14 17:45:38.449 +03:00 [INF] Request starting HTTP/2 GET https://sportoteka.online/connect/authorize?client_id=Sportoteka_LiveBb&redirect_uri=https%3A%2F%2Fbb.sportoteka.online%2Fauthentication%2Flogin-callback&response_type=code&scope=openid%20profile%20Vb%20role%20email%20phone&state=dfcfc475db5a4b6382ac997515a79e91&code_challenge=cCKccOYEqGDvXgrC_zuVtXrhd97VAwiMwn-LCTu7R3c&code_challenge_method=S256&prompt=none&response_mode=query - - 2021-06-14 17:45:38.475 +03:00 [INF] Invoking IdentityServer endpoint: IdentityServer4.Endpoints.AuthorizeEndpoint for /connect/authorize 2021-06-14 17:45:38.491 +03:00 [ERR] Invalid client configuration for client Sportoteka_LiveBb: No redirect URI configured. 2021-06-14 17:45:38.491 +03:00 [INF] {"ClientId":"Sportoteka_LiveBb","ClientName":"Sportoteka_LiveBb","Category":"Error","Name":"Invalid Client Configuration","EventType":"Error","Id":3001,"Message":"No redirect URI configured.","ActivityId":"80000041-0000-fc00-b63f-84710c7967bb","TimeStamp":"2021-06-14T14:45:38.0000000Z","ProcessId":17088,"LocalIpAddress":"192.168.76.3:443","RemoteIpAddress":"192.168.76.1","$type":"InvalidClientConfigurationEvent"} 2021-06-14 17:45:38.491 +03:00 [ERR] Unknown client or not enabled: Sportoteka_LiveBb {"ClientId":null,"ClientName":null,"RedirectUri":null,"AllowedRedirectUris":null,"SubjectId":"714fd518-43b8-8b29-fc49-39fac82c1e06","ResponseType":null,"ResponseMode":null,"GrantType":null,"RequestedScopes":"","State":null,"UiLocales":null,"Nonce":null,"AuthenticationContextReferenceClasses":null,"DisplayMode":null,"PromptMode":"","MaxAge":null,"LoginHint":null,"SessionId":null,"Raw":{"client_id":"Sportoteka_LiveBb","redirect_uri":"https://bb.sportoteka.online/authentication/login-callback","response_type":"code","scope":"openid profile Vb role email phone","state":"dfcfc475db5a4b6382ac997515a79e91","code_challenge":"cCKccOYEqGDvXgrC_zuVtXrhd97VAwiMwn-LCTu7R3c","code_challenge_method":"S256","prompt":"none","response_mode":"query"},"$type":"AuthorizeRequestValidationLog"} 2021-06-14 17:45:38.491 +03:00 [ERR] Request validation failed

Code was copied from Blazor project Client name changed to new New client was added to identity setver clients via origin blazor porject https://sportoteka.info/

I've always get UNAUTHORIZED_CLIENT error. https://bb.sportoteka.online/

What's wrong?

Hi

When will it be possible? Are there other authorization options for wasm?

Maxim

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

  1. No problems with connection to host
  2. Adding *.sportoteka.info to appsetting and/or IdentitiServer.. Cors/Uris tables leads to 500 error Unauthorized Client
  3. 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 )
  4. 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

Showing 1 to 10 of 11 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11