openiddict-ui icon indicating copy to clipboard operation
openiddict-ui copied to clipboard

IApplicationService.GetApplicationsAsync doesn't fill Permissions and RedirectUris

Open Khaos66 opened this issue 3 years ago • 3 comments

When using the IApplicationService.GetApplicationsAsync method, the result list contains ApplicationInfo instances with 0 Permissions and RedirectUris.

Khaos66 avatar Jul 12 '22 08:07 Khaos66

Workaround:

Apps = (await _apps.GetApplicationsAsync())
                .Select(async a => await _apps.GetAsync(a.Id))
                .Select(t => t.Result)
                .ToArray();

Khaos66 avatar Jul 12 '22 08:07 Khaos66

Hi @Khaos66

Could you please elaborate more on your issue?

I slightly improved the Integration test ApplicationApiTest.GetAsyncApplicationReceived and could not reproduce the issue.

I am not saying that there isn't a bug but so far not one that keeps me stop using my library ;-).

Greets Thomas

thomasduft avatar Aug 22 '22 18:08 thomasduft

Hi @thomasduft I was trying to display the registered aps with their permissions and redirect uris. Sadly GetApplicationsAsync wasn't filling these things on the returned list. The returned application instances never showed any permissions or redirect uris. When I used the native OpenIDDict API however, the apps definetly had permissions and redirect uris. If that's nothing you can verify, I'm fine with that, as I now just use the workaround ;)

Khaos66 avatar Aug 24 '22 12:08 Khaos66