duende identity server RequestClientCredentialsTokenAsync won't pass redirect uri

527 Views Asked by At

I'm using Duende Identity Server 6 and trying to get Access Token from my Identity Server in my API Controller using http client base on duende documentation.
But I get this Invalid redirect uri in my Identity Server console logs. enter image description here

As you can see the redirectUri is null in information log, and there is my code in Client API.Controller

enter image description here

1

There are 1 best solutions below

0
On

You are trying to make a client credentials flow. The endpoint you need to invoke is /connect/token. Is not necessary redirect uri in this flow.