imkakaka07
Novice

Suddenly getting 401 Access Denied for AAD

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.

ea33fa61-7d71-45d1-bf5c-c8417cc4395c.png

 

Reply
3 Replies
Rusty02
Apprentice

Re: Suddenly getting 401 Access Denied for AAD

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?

0 Kudos
Reply
OlivierC
Nintex Employee
Nintex Employee

Re: Suddenly getting 401 Access Denied for AAD

Hi imkakaka07,

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

Did you fix the issue? How?

 

Thanks in advanced

Olivier

0 Kudos
Reply
OlivierC
Nintex Employee
Nintex Employee

Re: Suddenly getting 401 Access Denied for AAD

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.
0 Kudos
Reply