Question

Suddenly getting 401 Access Denied for AAD

  • 13 January 2021
  • 1 reply
  • 218 views

Badge

I have an .NET Core API, which uses on-behalf flow to obtain token for K2 API. It works fine for past few months, and suddenly it’s not working. Every call to the K2 REST API returns with a 401 error.

Would anyone please suggest what could gone wrong?

Below is the code I used to obtain token for K2 API.

 


1 reply

Badge +1

Are you accessing K2 Five or K2 Cloud resources? Can you attach a sample asp.net core project that you are getting the error from?

Reply