Activities of "maliming"

Thanks 👍

Can you share a simple project?

I will test it in my local.

Thanks.

liming.ma@volosoft.com

hi

You can override the GetUserLookupAsync method of IdentityUserDelegationAppService Try to return the users that start with the UserName


public class GetUserLookupInput
{
    public string UserName { get; set; }
}```

hi

The certificate was exported to /home/runner/.dotnet/Cincaporc.WebApp.AuthServer/openiddict.pfx

/home/runner/work/Cincaporc.WebApp/Cincaporc.WebApp/src/Cincaporc.WebApp.AuthServer/OpenIddictServerBuilderExtensions.cs

Can you check the files to make sure the Cincaporc.WebApp.AuthServer project and openiddict.pfx exist in the same folder?

hi

Have you added the grant type to your client's permissions?

https://github.com/abpframework/abp/blob/3210f138454697647689b4868c8d4b7b3da02d44/modules/openiddict/app/OpenIddict.Demo.Server/EntityFrameworkCore/ServerDataSeedContributor.cs#L79

: )

hi

It works with the code below.

@using AbpSolution1.Books
@using AbpSolution1.Permissions
@using Microsoft.AspNetCore.Authorization
@inherits Volo.Abp.AspNetCore.Components.AbpComponentBase
@inject IBooksAppService BooksAppService

@if(IsAuthorized)
{
    if (IsAnyBook)
    {
        <div class="bg-success w-100 d-flex justify-content-center align-items-center h-100">
            <b class="text-dark">
                Books available
            </b>
        </div>
    }
    else
    {
        <div class="bg-warning w-100 d-flex justify-content-center align-items-center h-100">
            <b class="text-dark">
                No Books
            </b>
        </div>
    }
}
else
{
     <div class="bg-danger w-100 d-flex justify-content-center align-items-center h-100">
        <b class="text-dark">
            Not Authorized
        </b>
    </div>
}

@code {

    private bool IsAuthorized { get; set; } = false;

    private bool IsAnyBook { get; set; } = false;

    private async Task LoadBooks()
    {
        try
        {
            GetBooksInput input = new GetBooksInput();
            var books = await BooksAppService.GetListAsync(input);
            IsAnyBook = books.Items.Any();
        }
        catch(Exception ex)
        {
            await HandleErrorAsync(ex);
            Console.WriteLine(ex.Message);
        }
    }

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

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



hi

, the problem is a routing issue that the ABP code cannot locate the generated certificate.

What is this mean? do you have any error logs?

Thanks I will check it asap.

hi

Can you share a simple project to reproduce this?

I will download and check it.

liming.ma@volosoft.com

Thanks.

Showing 1191 to 1200 of 8490 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 19, 2024, 12:56