-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
(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
Labels
No labels