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!
HTTP 500 on POST to .../oauth/token
Moderators: StaffingSupport, s.emmons, BullhornSupport
Re: HTTP 500 on POST to .../oauth/token
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.
-
- User
- Posts: 1
- Joined: Thu Nov 16, 2023 5:01 am
Re: HTTP 500 on POST to .../oauth/token
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
Re: HTTP 500 on POST to .../oauth/token
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/
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
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
-
- User
- Posts: 3
- Joined: Thu Aug 31, 2023 4:15 am
Re: HTTP 500 on POST to .../oauth/token
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.
Re: HTTP 500 on POST to .../oauth/token
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!
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!