Can't get authorization code response

Forum for users and developers of Bullhorn's API service.

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
JohnnySix
User
Posts: 4
Joined: Thu Feb 11, 2021 7:34 am

Can't get authorization code response

Post by JohnnySix »

Good morning!

I'm new to Rest , having usually connected to data via MySQL / SQL Server connection strings, so apologies if this is ( A ) a Stupid question or ( B ) has been answered recently but I've not found in a forum search yet ( not knowing the right question to ask! )

I just want to be able to access and pull back the current Open Positions ( JobBoardPost entity ) by isOpen bool being true.

I'm testing each step via https://apitester.com/ - and have made sure to use the data-centre specifc URLS etc, but I'm falling on the first hurdle of getting the OAUTH2 Access Key / Token to the start using the API..

Though I'm entering the credentials and getting back a session cookie ( JSESSIONID )- the returned body is an HTML page for the user/pass login screen ( despite having put them in the query )

I've found that I'm not the only one to have this issue, but despite searches ( and suggestion of removing the optional redirect etc. ) - I've not see a solution.

P.S - is there an easy way to test all this on one go - say in a PHP script etc? I was looking for templates , but alas 'PHP' is too short a string to search in the forums!

regards
ggaragiola
User
Posts: 31
Joined: Wed Feb 26, 2020 12:43 pm

Re: Can't get authorization code response

Post by ggaragiola »

Hello,

This is Grant with Bullhorn Support.

I would suggest opening a ticket with our support team and if you are not the admin for your Bullhorn account have them submit a ticket on your behalf. We would need to look specifically at your API Username, Password, Client ID, and Client Secret to make sure everything looks good, which is why this most likely cannot be resolved over the forums. Then we can determine where the issue is happening.

http://bullhorn.github.io/Getting-Started-with-REST/

The above article is also a good resource as it will walk you through the Oauth process step by step.

Thank you,

Bullhorn Support
JohnnySix
User
Posts: 4
Joined: Thu Feb 11, 2021 7:34 am

Re: Can't get authorization code response

Post by JohnnySix »

Thanks Grant - That was the guide I was following step-by-step. It isn't returning an access token in the first step.

I'll speak to the administrator see if it's possible to raise a ticket.
JohnnySix
User
Posts: 4
Joined: Thu Feb 11, 2021 7:34 am

Re: Can't get authorization code response

Post by JohnnySix »

I should add - I get an HTML page returned with a form with a disabled 'Submit' button, and a blank password field.


Use a different account
Hello, <Username>!
Privacy Policy
In the event this shows up in searches by people having a similar issue - it's connecting via https://rest-emea.bullhornstaffing.com/oauth .
Post Reply