oauth

Peer certificate cannot be authenticated with known CA certificates using PHP OAuth extension

China☆狼群 提交于 2019-12-21 12:06:54
问题 I'm using PHP OAuth extension to make a call to the Tradeking API. When I make the exact call as in here, https://developers.tradeking.com/documentation/php I'm getting the exception Exception caught! Response: making the request failed (Peer certificate cannot be authenticated with known CA certificates) Why this is happening and how can I resolve this? 回答1: The OAuth extension uses curl to make the request. By default CURL will generally verify the SSL certificate to see if its valid an

How can I connect to Google using oauth with Ruby?

本小妞迷上赌 提交于 2019-12-21 09:34:15
问题 there are oauth and oauth2 gems, but I have not found an example to connect to google with oauth 回答1: The officially supported method is to use Signet. The README contains the example code required to authenticate against the Google OAuth endpoints. See also the Google API Client for Ruby. If you have any questions on either, don't hesitate to ping me. I'm supporting both libraries. Signet will also work for other OAuth providers. An official OmniAuth plugin is also available. 回答2: Try

How can I get Yahoo OAuth to work when I develop locally when my local domain is not registered with Yahoo?

若如初见. 提交于 2019-12-21 07:26:25
问题 I'm working on an app that uses Yahoo OAuth. The OAuth had been working fine but I just registered my domain with Yahoo and now it will not let me use the OAuth when I develop locally because "Custom port is not allowed or the host is not registered with this consumer key." The issue is because my call back URL is to a domain that is not registered with Yahoo (http://localhost:8080/welcome). I'm not sure what to do. I'm also new to development so if you could be specific with suggestions that

Access token Google+

六月ゝ 毕业季﹏ 提交于 2019-12-21 06:19:45
问题 I'm experiencing few issues with the new-released Google+ API to retrieve an access token... I have been following the documentation, I got a Code ("4/blablabla") but when I send the POST request to get an access token, I get a "(400) Bad Request" response... Here is my piece of code : // We have a request code, now we want an access token StringBuilder authLink = new StringBuilder(); authLink.Append("https://accounts.google.com/o/oauth2/token"); authLink.AppendFormat("?code={0}", gplusCode);

Access token Google+

佐手、 提交于 2019-12-21 06:19:07
问题 I'm experiencing few issues with the new-released Google+ API to retrieve an access token... I have been following the documentation, I got a Code ("4/blablabla") but when I send the POST request to get an access token, I get a "(400) Bad Request" response... Here is my piece of code : // We have a request code, now we want an access token StringBuilder authLink = new StringBuilder(); authLink.Append("https://accounts.google.com/o/oauth2/token"); authLink.AppendFormat("?code={0}", gplusCode);

Restore Access Token in hybridauth

元气小坏坏 提交于 2019-12-21 05:57:10
问题 I saved the Access Token (using this method: getAccessToken ()) in my database, but now I would like to restore this value to an object. How can I do this? 回答1: This is explained in hybridauth user manual with below code : // get the stored hybridauth data from your storage system $hybridauth_session_data = get_sorted_hybridauth_session( $current_user_id ); Get_sorted_hybridauth_session is your internal function to get the stored data. It doesnt matter whether you store the data in a table in

OpenSSL::SSL::SSLError Ubuntu 12.04 only

巧了我就是萌 提交于 2019-12-21 05:40:07
问题 I am using Evernote Ruby API to develop a web application(using rails and oauth). But while running the application in Ubuntu 12.04 I am getting an error "SSL_connect SYSCALL returned=5 errno=0 state=unknown state." This happens only in ubuntu 12.04. Ubuntu versions < 12.04 doesnt have this problem. 回答1: What is your current SSL_Cert_file environmental variable set to? Try setting the SSL_Cert_file environmental variable to: export SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt If that

Implementing access with oAuth or other

天涯浪子 提交于 2019-12-21 05:22:20
问题 I'm trying to think of a way to open a website and part of its database to other third party websites, similar to how Twitter lets webapps connect to its database to retrieve data and possibly store data. My initial research led me to oAuth (or is it openID?). What I need to do is let the third party websites login to a user's account on the website, but only read and write data that belongs to them and not be able to touch data that belong to other third party websites? I'm a bit fuzzy of

Install PHP OAuth Extension on WAMP

拈花ヽ惹草 提交于 2019-12-21 05:14:08
问题 This line of PHP code: $oauthClient = new OAuth($consumerKey, $consumerSecret, ... etc. Results in error: Fatal error: Class 'OAuth' not found I'm running WampServer 2.1, PHP version 5.3.4, Windows Server 2008 R2 (equivalent to Windows 7) I've double checked that php_oauth.dll is installed as per these instructions: PHP OAUTH class api How do I successfully load the oauth extension and fix this PHP error? 回答1: Download the correct oauth DLL from here Paste php_oauth.dll in \wamp\bin\php\php5

Adding Oauth 2.0 to Jersey based RESTful server

一个人想着一个人 提交于 2019-12-21 05:08:17
问题 I have a Jersey based server that I want to secure with OAuth 2.0 . There are two paths that I've seen as common: Oltu - Is compatible with Jersey and seems to be supported, although not as well as Spring Security. This 2012 question seems to suggest this is the way to go, but I want confirmation on a 2016 context so I son't implement something not as well supported anymore. Spring Security - It seems to be very popular, but this path implies changing the server into a Spring based MVC. I don