Skip to content

.p12 certificate support? #18

@wsw70

Description

@wsw70

(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 = 'generatedbygoogleconsole@developer.gserviceaccount.com'
        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='user@example.com'
        )
        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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions