[Oauth] Status code when the access token is expired/ already used

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
josephaflredo
User
Posts: 1
Joined: Fri Nov 16, 2018 4:16 pm

[Oauth] Status code when the access token is expired/ already used

Post by josephaflredo » Fri Nov 16, 2018 4:29 pm

Hi

If i understand this correctly, in the last step of auth, we are supposed to call the login endpoint with access token to obtain a restUrl and session token.
Does this end point could only be called once with the same access token ?
I received this error when i tried to call the end point again:

Code: Select all

{
"message": "Bad Request",
"statusCode": 400,
"body": "

{\n \"errorMessage\" : \"Invalid or expired OAuth access token.\",\n \"errorMessageKey\" : \"errors.internalError\",\n \"errorCode\" : 400\n}
",
"_error": true
}
Thank you

pmularski
Bullhorn Support Staff
Posts: 923
Joined: Wed Dec 31, 1969 8:00 pm

Re: [Oauth] Status code when the access token is expired/ already used

Post by pmularski » Mon Nov 19, 2018 3:03 pm

Good Afternoon josephaflredo,

Yes. You would need to regenerate the process, but the refresh token is a long lived token, so you should be able to use that instead of going through the entire process over and over again.

You can find more information here. http://bullhorn.github.io/docs/oauth/
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

Post Reply