There is now a simple way to do that. Use http://adodson.com/hello.js/ - it makes easy to authenticate with a lot of identity providers.
Yahoo authentication by OAuth without any redirection(client-side). Is it possible?
-
01-06-2022 - |
Frage
Is there a way to make a oauth authentication (get the user token and secret) without any redirection or refreshing my app page.
So the flow should be:
- Users clicks the "Login with Yahoo!" button
- Popup with login form and then access form appears.
- When user allow app to get his information popup closes and return information in JSON
- Javascript callback function can read user's token and secret.
I was searching a lot and haven't found solution for that. Can you tell me is it possible and give me a tip what should I search for or what should I use ? If you provide some sample code I will be very happy.
LinkedIn, Facebook and Twitter have their own JS SDK or/and JSAPI which include authentication and works great. I haven't found something like that on Yahoo.
Lösung 2
Andere Tipps
You can use popup UI
for this purpose. Yahoo supports it.
This post will help you: Yahoo and Popup UI for OpenID
See the demo.
Check out these too: A simple YUI 3 module for adding Yahoo! login to a page and yahoo-oauth-popup.