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

Yahoo OAuth connection error #186

Open
martinhladil opened this issue Mar 1, 2019 · 3 comments
Open

Yahoo OAuth connection error #186

martinhladil opened this issue Mar 1, 2019 · 3 comments

Comments

@martinhladil
Copy link

martinhladil commented Mar 1, 2019

It seems that Yahoo dropped OAuth 1 support and the attempt to call OAuth 1 simply fails with the connection error. I was trying to modify the code to support OAuth 2, but I was only able to get myself to the consent screen 5ece3d7, the following process is out of my league unfortunately.

@louie728
Copy link

I am facing this same exact issue the connection error that I am seeing in my rails log states ..
`Error internal_error while processing /contacts/yahoo:

<title>Error 405 HTTP method POST is not supported by this URL</title>

HTTP ERROR 405

Problem accessing /oauth/v2/get_request_token. Reason:

    HTTP method POST is not supported by this URL


Powered by Jetty:// 9.4.z-SNAPSHOT
`

Has anyone resolved integration with Yahoo?

@DemitryT
Copy link

DemitryT commented Jan 6, 2020

@louie728 With the help of @martinhladil gist, I was able to update a custom fork of this gem to get the Yahoo importer to work with OAuth 2. You can see the changes here: jr180180#1 (review)

Essentially I just updated the Yahoo importer to use the OAuth 2 logic. Also, updated the methods for the new flow and now storing the Yahoo user GUID in a session variable to be able to use it in the importer. I'm sure this can be done in a cleaner way, but did the trick for me.

I should also mention that I had to create a new Yahoo app on my developer account to get this working.

Lastly, in the Rails app that's using the above fork, I had to update config/initializers/omnicontacts.rb for yahoo (notice I'm now using redirect_path instead of callback_path):

importer :yahoo, ENV['YAHOO_CLIENT_ID'], ENV['YAHOO_CLIENT_SECRET'], redirect_path: '/contacts/yahoo/contact_callback'

Hope this helps!

jr180180 added a commit to jr180180/omnicontacts that referenced this issue Jan 6, 2020
@louie728
Copy link

louie728 commented Jan 6, 2020

@DemitryT and @martinhladil Thanks! I ended up using omniauth-yahoo_auth with some custom code. I do appreciate the response though.

Thanks

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