I’m using the latest version (5.6.0) of the NuGet package OpenIddict in an ASP.NET Core project with .NET 8. They have an example on https://documentation.openiddict.com/guides/getting-started/creating-your-own-server-instance.html showing how to register a new client with an ID and secret:
var manager = scope.ServiceProvider.GetRequiredService<IOpenIddictApplicationManager>();
if (await manager.FindByClientIdAsync("service-worker") is null)
{
await manager.CreateAsync(new OpenIddictApplicationDescriptor
{
ClientId = "service-worker",
ClientSecret = "388D45FA-B36B-4988-BA59-B187D329C207",
Permissions =
{
Permissions.Endpoints.Token,
Permissions.GrantTypes.ClientCredentials
}
});
}
I have seen that the client gets saved to the database table OpenIddictApplication
:
My question is:
- Is there any easy way to administrate the clients without having to modify any code? E.g. if I want to add or delete a client, I would like to be able to do that without having to deploy a new version of the application. Is there anything built-in in OpenIddict that already solves this?