Suddenly getting 401 Access Denied for AAD

  • 13 January 2021
  • 3 replies
  • 10 views

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.

13426i1ECDB9BE2E4FCECA.png

 


3 replies

Badge +5

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?

Badge +6

Hi imkakaka07,


I have the same issue with a ChromiumWebBrowser in c#.


Did you fix the issue? How?


 


Thanks in advanced


Olivier

Badge +6
Finally I found my issue: it was linked because Simply the header was not correct:
Authorization: Basic …
The user was correct, but not the password.

Reply