Giter Club home page Giter Club logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 10, 2024
Hello plainwu,

I understand that you want to talk to the Google Data API using the OAuth-php 
library?    Google requires a 
'scope' parameter for the request_token uri.   Which uris did you configure?

I've found this documentation mentioning the 'scope' parameter:

http://code.google.com/apis/accounts/docs/OAuth.html

An issue you will run into is that Google only supports RSA-SHA1 hashes.  At 
the moment we don't support 
this signature method (due to key management issues).  Currently we support 
PLAINTEXT, HMAC-SHA1 and 
MD5.

- Marc

Original comment by [email protected] on 8 Sep 2008 at 8:49

from oauth-php.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 10, 2024
ok... thanks for your reply

Original comment by [email protected] on 9 Sep 2008 at 7:33

from oauth-php.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 10, 2024
We are refactoring the library so that it will be possible to use it with 
RSA-SHA1.  Refactoring is necessary as the 
signing with RSA-SHA1 requires a different signature verification flow.

Original comment by [email protected] on 9 Sep 2008 at 8:22

from oauth-php.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 10, 2024
That's a great news....

Look forward to your next release...

Original comment by [email protected] on 9 Sep 2008 at 10:56

from oauth-php.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 10, 2024
I just added code to support RSA-SHA1 signing.
This very alpha quality and needs some testing.

For now you can check:

http://code.google.com/p/oauth-
php/source/browse/trunk/library/signature_method/OAuthSignatureMethod_RSA_SHA1.p
hp


Original comment by [email protected] on 1 Oct 2008 at 3:14

from oauth-php.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 10, 2024
I consider this bug as fixed, as we do support RSA-SHA1 code signing now.

Original comment by [email protected] on 25 Jan 2009 at 11:22

  • Changed state: Fixed

from oauth-php.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 10, 2024
Hi I am writing c# .net application to test OAuth and I am getting 
parameter_absent oauth_parameters_absent:scope Error

Please help. Here is my code

            UnityContainer unityContainer = new UnityContainer();

            UnityConfigurationSection section = (UnityConfigurationSection)ConfigurationManager.GetSection("oauth.net.consumer");

            section.Containers.Default.Configure(unityContainer);

            ServiceLocator.SetLocatorProvider(() => new UnityServiceLocator(unityContainer));

            OAuthConsumer oAuthConsumer = new OAuthConsumer("anonymous", "anonymous", "My Application");
            IServiceLocator serviceLocator = ServiceLocator.Current;
            OAuthService oAuthService = OAuthService.Create(new EndPoint("https://www.google.com/accounts/OAuthGetRequestToken"), new Uri("https://www.google.com/accounts/OAuthAuthorizeToken"), new EndPoint("https://www.google.com/accounts/OAuthGetAccessToken"), oAuthConsumer);
            OAuthRequest oAuthRequest = OAuthRequest.Create(new EndPoint("https://www.google.com/calendar/feeds/default/private/full"), oAuthService);

            OAuthResponse oAuthResponse = oAuthRequest.GetResource(); // Here I am getting error

Here is my App.config file

<configuration>
  <configSections>
    <section name="oauth.net.consumer" type="Microsoft.Practices.Unity.Configuration.UnityConfigurationSection, Microsoft.Practices.Unity.Configuration"/>
  </configSections>
  <oauth.net.consumer>
    <containers>
      <container>
        <types>
          <type type="OAuth.Net.Common.ISigningProvider, OAuth.Net.Common"
                 mapTo="OAuth.Net.Components.HmacSha1SigningProvider, OAuth.Net.Components"></type>
          <type type="OAuth.Net.Common.INonceProvider, OAuth.Net.Common"
                     mapTo="OAuth.Net.Components.GuidNonceProvider, OAuth.Net.Components" />
        </types>
      </container>
    </containers>
  </oauth.net.consumer>
</configuration>

Original comment by [email protected] on 7 Jan 2011 at 6:24

from oauth-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.