Skip to main content
Solved

API Key error access denied

  • December 5, 2022
  • 2 replies
  • 919 views

afautley
Skilled Expert
Forum|alt.badge.img+11

Noticed on November release notes that they are depreciating Basic Authentication in the web requests.

I’ve tried to move over to API Key but am getting an error.

Is anyone else getting this

 

Best answer by zachary.king

Hello @afautley, I think that deprecation simply removes the ability to make API requests for freshservice using username and password through basic auth. But you should still be able to use “Basic Auth” as the authorization type and pass your API key as the username and “x” as the password. Seems really backwards to me though and hopefully a few of the engineers can explain why it is set up this way still.

You of course can use API as the authorization method for third party applications. Not sure why Freshservice hasn’t switched to that type of Authorization header.

Has me spinning as well 🤔

View original
Did this topic help you find an answer to your question?

2 replies

zachary.king
Skilled Expert
Forum|alt.badge.img+16
  • Skilled Expert
  • 951 replies
  • Answer
  • December 5, 2022

Hello @afautley, I think that deprecation simply removes the ability to make API requests for freshservice using username and password through basic auth. But you should still be able to use “Basic Auth” as the authorization type and pass your API key as the username and “x” as the password. Seems really backwards to me though and hopefully a few of the engineers can explain why it is set up this way still.

You of course can use API as the authorization method for third party applications. Not sure why Freshservice hasn’t switched to that type of Authorization header.

Has me spinning as well 🤔


afautley
Skilled Expert
Forum|alt.badge.img+11
  • Author
  • Skilled Expert
  • 194 replies
  • December 6, 2022

Thanks Zach, appreciate the info, got worried i was going to have to change all our Web requests again!