Starts in:
1 DAY
18 HRS
19 MIN
50 SEC
Starts in:
1 D
18 H
19 M
50 S

Activities of "roberto.fiocchi"

From the logs I see that after the login a call to Books is made correctly, then UserInfo is called and this seems to change the state of the page so the component present in the toolbar is reloaded (reinitialized) only that in that case it sees the user logged in with the correct permissions but the next call fails for expired token

In case of a 401 error, apparently, the Client Proxy error handling it and the user is disconnected and sent back to the login session.

I already do it, did you read the code in the ticket?

protected override async Task OnInitializedAsync()
{
await base.OnInitializedAsync();
var isAutheticated = CurrentUser.IsAuthenticated;
var isAuthorized = await AuthorizationService.IsGrantedAsync(AbpSolution1Permissions.Books.Default);


    if (isAutheticated && isAuthorized)
    {
        await LoadBooks();
    }
}

Not work.

https://learn.microsoft.com/en-us/aspnet/core/blazor/security/?view=aspnetcore-8.0#authorize-attribute Only use [Authorize] on @page components reached via the Blazor router. Authorization is only performed as an aspect of routing and not for child components rendered within a page. To authorize the display of specific parts within a page, use AuthorizeView instead.

https://github.com/abpframework/abp/issues/20388

Please read https://abp.io/docs/latest/cli/differences-between-old-and-new-cli#using-the-new-abp-cli

Hi @liangshiwei, Now we all must to switch to abp studio because the old cli will no longer be supported, right?

Thanks

Restore the button "Create a new solution" , thanks

I created a new solution using abp cli 8.2.1 and then I installed abp studio and created a new solution always abp 8.2.1 Comparing the two generated solutions I noticed that they are different, obviously excluding the files that abp studio added for its configurations. Why?

With Abp Studio 0.74 I can't choose the preview version of abp. From Abp suite if I choose version 8.3.rc1 from the Abp suite menu and create a new solution it always creates it with the current version: Abp 8.2.1 If I manually install abp suite preview 8.3.rc1 the "Crate a new solution" button is no longer present.

How should I create a new solution with the preview version?

Can you update your example with the final code we should use?

Thank you

Hi liangshiwei, If instead of "https://localhost:44314" you showed how to retrieve the client URL from settings or configuration it would be a better solution

:-)

Showing 21 to 30 of 98 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06