We have a number of applications that use bespoke versions of the keycloak authorization code in .NET to do policy enforcement. I would like to migrate to use your library. However, we have a requirement to be able to fetch the user's current permissions. These permissions are fetched from the web UI application via an authenticated API. The permissions are used for security/feature trimming based on the permissions. The data access and update APIs are still protected with policy enforcement.
I have an implementation that fetches the user's permssions. This function returns a list of resources and the associated scopes.
public record Resource
{
public string Id { get; set; } = string.Empty;
public string Name { get; set; } = string.Empty;
public string[] Scopes { get; set; } = [];
}
I would like to submit a pull request with these changes to your repository. Where should I add this code. It would seem logical to add a method to IAuthorizationServerClient / AuthorizationServerClient.
We have a number of applications that use bespoke versions of the keycloak authorization code in .NET to do policy enforcement. I would like to migrate to use your library. However, we have a requirement to be able to fetch the user's current permissions. These permissions are fetched from the web UI application via an authenticated API. The permissions are used for security/feature trimming based on the permissions. The data access and update APIs are still protected with policy enforcement.
I have an implementation that fetches the user's permssions. This function returns a list of resources and the associated scopes.
I would like to submit a pull request with these changes to your repository. Where should I add this code. It would seem logical to add a method to
IAuthorizationServerClient
/AuthorizationServerClient
.