AddClientAccessTokenClient not found
dthemg opened this issue · comments
Hi
I can't seem to find the AddClientAccessTokenClient
function when using IdentityModel - see for example use here or here. To me, I just get a that there is no such definition for IServiceCollection
. I MUST be missing something obvious here:
Using:
IdentityModel
v5.2.0
IdentityModel.AspNetCore
v4.0.1
Here is my usage:
...
using IdentityModel.Client;
using IdentityServer4.Models;
...
services.AddClientAccessTokenManagement(options =>
{
options.Clients.Add("identityserver", new ClientCredentialsTokenRequest
{
Address = clientAuthenticationOptions.AuthenticationHost,
ClientId = clientId,
ClientSecret = clientSecret.Sha256(),
Scope = "api1"
});
});
// AddClientAccessTokenClient is not recognized
services.AddClientAccessTokenClient("client", "identityserver", configureClient: client =>
{
client.BaseAddress = new Uri(clientAuthenticationOptions.AuthenticationHost);
});
AddClientAccessTokenHttpClient
and AddUserAccessTokenHttpClient
?
yes
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue.