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

.p12 certificate support? #18

Open
wsw70 opened this issue Apr 13, 2015 · 1 comment
Open

.p12 certificate support? #18

wsw70 opened this issue Apr 13, 2015 · 1 comment

Comments

@wsw70
Copy link

wsw70 commented Apr 13, 2015

(this is a wishlist / enhancement "issue")

There is a possibility of a two-legged authentication in oAuth (information here and here).

In the case of Google, the method is part of the oAuth library:

# authenticate
        client_email = '[email protected]'
        with open('privatekeyalsogeneratedbygoogleconsole.p12', 'rb') as f:
            private_key = f.read()
        credentials = oauth2client.client.SignedJwtAssertionCredentials(
            client_email,
            private_key,
            'https://www.googleapis.com/auth/calendar.readonly',
            sub='[email protected]'
        )
        http_auth = credentials.authorize(httplib2.Http())
        service = apiclient.discovery.build('calendar', 'v3', http=http_auth)

Would there be a chance to have this service account oAuth authorization support in sanction?

@demianbrecht
Copy link
Owner

Hi @wsw70, thanks for the feature request. The best chance of having the support added is to submit a patch if you're able to :) Aside from that, I don't have much time these days for support here, but will definitely add it to my TODO list.

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

2 participants