HTTP 500 on POST to .../oauth/token

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
pholser
User
Posts: 1
Joined: Tue Jul 19, 2022 9:47 pm

HTTP 500 on POST to .../oauth/token

Post by pholser »

The shape of the request body contains:

-- a grant type of "refresh_token"
-- the refresh token itself
-- a client id
-- a client secret

The body of the response is HTML, and includes the phrase:

"HTTP Status 500 - superClusterId could not be determined from token: [refresh-token-expunged]"

Can anyone tell me what this means, and how to resolve it?

Thanks for your help!
lulstrup
User
Posts: 1
Joined: Wed Jul 21, 2021 12:48 pm
Contact:

Re: HTTP 500 on POST to .../oauth/token

Post by lulstrup »

Solved via improved parsing of the Authorization Code response. I was not retrieving the whole code (chars:chars) when submitting to the Access Token stage of the process.
Last edited by lulstrup on Tue Oct 24, 2023 9:03 pm, edited 2 times in total.
brianwilsonrt
User
Posts: 1
Joined: Thu Nov 16, 2023 5:01 am

Re: HTTP 500 on POST to .../oauth/token

Post by brianwilsonrt »

I have had help on fixing some of it but I am now having an error with authorization/permission while getting to /oauth/token. wordle 2
pmularski
Bullhorn Support Staff
Posts: 978
Joined: Wed Dec 31, 1969 8:00 pm

Re: HTTP 500 on POST to .../oauth/token

Post by pmularski »

Greatings,

This may be due to the recent auth changes, which now require that you connect to the client appropriate end point. Previously, you could hit the basic bullhornstaffing.com endpoint, and the system would redirect. In order to improve performance, auth calls now need to be sent to the correct end point.

Please run the following GET rest-services/loginInfo request with your API_Username to return the list of correct URLs for that user/client:
https://rest.bullhornstaffing.com/rest- ... I_Username}

https://bullhorn.github.io/Getting-Started-with-REST/
Patrick Mularski
Senior Enterprise Support Analyst
B U L L H O R N
Staffing and Recruiting Software, On Target, On Demand
Bullhorn Support Contact Numbers
US: 617-478-9126
UK: 44 800 032 2848
Australia: 61 28 073 5089
International: 617-478-9131
realalexvdvalk
User
Posts: 3
Joined: Thu Aug 31, 2023 4:15 am

Re: HTTP 500 on POST to .../oauth/token

Post by realalexvdvalk »

What happens if you have a generic app with users from all various swimlanes? It seems odd that I'd have to request a user to enter their Bullhorn username on a 3rd party website so that i can redirect them to the correct auth server.
twillet23
User
Posts: 19
Joined: Mon Aug 30, 2021 1:52 am

Re: HTTP 500 on POST to .../oauth/token

Post by twillet23 »

I was hoping to ask some follow up questions, but the original announcement from today is locked...

The new documentation references '{value_from_loginInfo}' several times, but never specifically identifies which of the 13 URLs should be interpolated in this variable

it appears the 'oauthUrl' value should be used in the auth endpoint and the 'restUrl' should be used in the login endpoint, but it is not specifically stated. Considering the loginInfo endpoint returns so properties, I think it would be worth the extra detail in the documentation to prevent misunderstandings. Can you confirm my assumptions?

When do we expect the old end points to stop working? I just tested an auth endpoint with 'https://auth.bullhornstaffing.com/oauth/authorize' and I got a normal response.

Also, could you point us to any other documentation about this, like the original announcement? I'm only finding an announcement about the redirectUri.

Thank you!
Post Reply