Questions tagged [oauth2client]

[DEPRECATED] The oauth2client python library made it easy to connect to resources protected by OAuth2.0. The library is deprecated. Use google-auth and oauthlib instead.

Deprecation Notice:

oauth2client is now deprecated. No more features will be added to the libraries and the core team is turning down support. We recommend you use google-auth and oauthlib. For more details on the deprecation, see oauth2client deprecation.


The oauth2client library comes as part of the google-api-python-client, but is also available as a separate download if you just need the OAuth 2.0 capabilities.

The library supports these Python environments:

  1. Python 2.4, 2.5, 2.6, 2.7
  2. Google App Engine
  3. Django

This is a pure Python library that can be used from any platform. Samples are included for Google App Engine, and Django. The library has been tested against the Google and DailyMotion implementations of OAuth 2.0.

210 questions
1
vote
0 answers

initializer for ctype 'EVP_MD_CTX *' must be a pointer to same type, not cdata 'EVP_MD_CTX *'

For some time now I have been getting this nasty "initializer for ctype 'EVP_MD_CTX *' must be a pointer to same type, not cdata 'EVP_MD_CTX *'" error when using oauth2client (with a service account using a p12 or pem certificate file). This happens…
marc.fargas
  • 666
  • 1
  • 7
  • 17
1
vote
1 answer

How to get data from NXOAuth2Request response

I'm writing my first iOS app. It includes API calls through OAuth2Client. The problem is when calling the AdvAPI getUser function. A GET request is made through NXOAuth2Request which deals with the response data in responseHandler and variable…
Dandan
  • 650
  • 1
  • 10
  • 17
1
vote
1 answer

Transfer ownership of Google Drive documents

We develop application in C# which need to transfer ownership of all Google Drive documents related to the curtain domain to a single certain user without permission of original owner. We are using trial version of Google Apps business account. In…
1
vote
1 answer

OAUTH2 transaction manager grails mongodb

I am working on an app that uses a mongodb, is built in grails, and is using oauth2 as an authentication service. I have the services and controller built out (I think) and am trying to run my server to manually test connectivity with google. I am…
mmelear
  • 97
  • 11
1
vote
1 answer

Google+ Domains API 403 Forbidden

I'm trying to create Circles with the Google+ API, but I'm kinda stuck, this is my code, it was more or less copied from the official API documentation (yes I know it doesn't create Circle, but the issue is the same) import httplib2 from…
kviktor
  • 1,076
  • 1
  • 12
  • 26
1
vote
1 answer

How should an application add/remove scopes to an existing grant?

Tried adding additional scopes using oauth2client's OAuth2DecoratorFromClientSecrets via the scopes parameter. I believe users of an application would prefer to gradually expand privileges; as its needed, and as trust forms... What is the best way…
1
vote
2 answers

OAuthWebSecurity.IsAuthenticatedWithOAuth - Method not found

I'm implementing an OAuth2Client and when I call var result = OAuthWebSecurity.VerifyAuthentication(); I result.IsSuccessful is equals to false. I've seen that "OAuthWebSecurity.IsAuthenticatedWithOAuth" method has the following exception:…
Gui Ferreira
  • 4,367
  • 6
  • 28
  • 41
1
vote
1 answer

google oauth2client in app engine

I'm writing a program that uses oauth2 library of google for some app in google-app-engine. When I run the server on my machine, it raises an IOError exception of this sort -- File…
shashydhar
  • 801
  • 3
  • 8
  • 26
1
vote
1 answer

iOS: OAuth2Client and Google

I'm trying to get Google's OAuth2 working for user verification in an iOS app. I'm using the OAuth2Client api but cannot get it working with google. It appears that google only accepts http://localhost or urn:ietf:wg:oauth:2.0:oob as the redirect…
drekka
  • 20,957
  • 14
  • 79
  • 135
0
votes
0 answers

Generate access token for Oauth2 Authorization code grant type & consume the secured Rest API using spring boot using that access token

I need to get the access token from oauth2.0 Authorization code grant. I have clientid, client secret, redirect uri, token uri etc. Using spring boot I hit an api so that it'll redirect into Authorization uri where I'll enter user credentials and…
0
votes
0 answers

How can I send e-mails from my GMail account using REST service?

As of the end of May, 2022, Google no longer allows enabling "Less secure apps". So, I'm not able to use Basic authentication (i.e. user name and password) for sending e-mails using SMTP. The MailKit FAQ is suggesting to use OAuth2, but when I…
AxD
  • 2,714
  • 3
  • 31
  • 53
0
votes
3 answers

Spring OAuth2 Client - authorization code exchange fails

Suppose we have a confidential OAuth2 Client performing authorization against the Authorization Server using authorization code grant type. Here's a minimal reproducible example. Client application is running on port 7070, authorization server on…
0
votes
0 answers

how to intercept spring-boot-starter-oauth2-client's endpoint?

I run this spring-authorization-server samples to complete oidc authorization process. Now I want to intercept http://127.0.0.1:8080/login/oauth2/code/messaging-client-oidc and get the code and state.Next, I want to complete the remaining…
0
votes
0 answers

How to get Sharepoint OAuth2 Token programmatically

I'm trying to write a Python script that downloads files from Sharepoint. Https Basic Auth is disabled, and i have to use OAuth2. Now, every How-To and Tutorial I've seen tells me i have to "register my app" on Sharepoint first, and then use my…
Pace
  • 1
0
votes
1 answer

Is there a simple Spring Boot dependency to replace Auth0 JWT and JWK-RSA dependencies?

I'm trying to decode a JWT token issued by Keycloak in my Spring-Boot project using com.auth0.jawa-jwt and com.auth0.jwks-rsa dependencies in my pom.xml. These dependencies have version numbers and I've been asked to remove them in favor of spring…