Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Authentication Issue #263

Open
guru257525 opened this issue Jun 5, 2019 · 7 comments
Open

API Authentication Issue #263

guru257525 opened this issue Jun 5, 2019 · 7 comments

Comments

@guru257525
Copy link

guru257525 commented Jun 5, 2019

Hi Team,

The Authentication fails with the below exception
Exception in thread "main" com.bullhornsdk.data.exception.RestApiException: Failed to create rest session
at com.bullhornsdk.data.api.helper.RestApiSession.createSession(RestApiSession.java:136)
at com.bullhornsdk.data.api.helper.RestApiSession.(RestApiSession.java:88)
at com.bullhornsdk.data.api.StandardBullhornData.(StandardBullhornData.java:165)
at com.avrio.bullhorn.BullhornPullUtil.main(BullhornPullUtil.java:101)
Caused by: com.bullhornsdk.data.exception.RestApiException: Failed to get authorization code.
at com.bullhornsdk.data.api.helper.RestApiSession.getAuthorizationCode(RestApiSession.java:165)
at com.bullhornsdk.data.api.helper.RestApiSession.createSession(RestApiSession.java:126)
... 3 more
Caused by: java.lang.NullPointerException
at com.bullhornsdk.data.api.helper.RestApiSession.getAuthCode(RestApiSession.java:191)
at com.bullhornsdk.data.api.helper.RestApiSession.getAuthorizationCode(RestApiSession.java:162)
... 4 more

Let me know if you need anything else.

@ghost
Copy link

ghost commented Jun 5, 2019

Hi @guru257525,

Not sure you should share your private credentials on a public site. You might want to delete them from this post.

@guru257525
Copy link
Author

Hi @andrewsavill,

I have removed it, let me know if you need anything else to debug this issue.

@guru257525
Copy link
Author

Hi,

Any update on this issue?

@charlesabarnes
Copy link

Hey @guru257525, apologies for your wait.

Have you tried to manually run through the API auth steps? This would possibly help us diagnose which step of the process this is failing at.

The manual steps can be found here: http://bullhorn.github.io/Getting-Started-with-REST/

Please let me know if I can help you with this

@guru257525
Copy link
Author

HI @charlesabarnes,

Itseems to be working now, I did not make any changes though.

Will let you know if anything goes wrong again

Thanks

@joncampbelldev
Copy link
Contributor

Just to let you know that past versions of comments are visible on github, you should definitely revoke those credentials. They're still visible by clicking on the "edited" button next to the initial post. Hopefully you have done this already because anyone could've been accessing your data for the last 6 months.

@joncampbelldev
Copy link
Contributor

@guru257525 (mentioning you just in case the above comment didn't notify you)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants