Skip to main content
Nintex Community Menu Bar

Suddenly getting 401 Access Denied for AAD

  • January 13, 2021
  • 3 replies
  • 50 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

Forum|alt.badge.img+5
  • Rookie
  • January 23, 2021

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?


OlivierC
Nintex Employee
Forum|alt.badge.img+6
  • Nintex Employee
  • May 20, 2021

Hi imkakaka07,

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

Did you fix the issue? How?

 

Thanks in advanced

Olivier


OlivierC
Nintex Employee
Forum|alt.badge.img+6
  • Nintex Employee
  • May 20, 2021
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.