d07ab2d7e1
Clean up string quotes
2016-01-12 19:33:11 -08:00
f3b970ae14
getGDataOAuthToken (formerly tryOAuth) was wiping out additional_headers
2016-01-12 15:34:25 -08:00
16d8cddf12
In gam print admins, include id: with orgUnitId in CSV file
2016-01-12 07:27:31 -08:00
671f7d810c
buildOrgUnitIdToNameMap only mapped top level org units
2016-01-11 23:14:24 -08:00
0d94dd3fa5
Handle out of domain users better
2016-01-11 22:21:01 -08:00
eb5cfde630
Handle JSON format errors
2016-01-11 10:06:53 -08:00
aa04e3ec1d
Fix select_default_scopes in doRequestOAuth
...
https://www.googleapis.com/auth/admin.directory.user.security is not a
subset of https://www.googleapis.com/auth/admin.directory.user
2016-01-11 08:35:01 -08:00
0333e29eef
Service creation, dynamic scope cleanup
...
Make routine getAPIversionHttpService to handle all steps to get a
service.
Make routine handleOAuthTokenError to handle OAuth token errors.
In doRequestOAuth, get admin email address from oauth2.txt if it
exists, otherwise prompt for it.
Move reading of gamscopes,json into SetGlobalVariables as a local
routine _getScopesAdminDomainFromGamScopesJson.
2016-01-10 09:58:21 -08:00
8929ee534f
Ease transition to new all service model
...
Get admin email address and domain from oauth2.txt if it exists
2016-01-07 13:07:43 -08:00
8eb347488f
Eliminate 'email' scope, may sure that selected_scopes has unique elements
2016-01-06 06:24:01 -08:00
f8642a18df
Delete 'email' scope
...
If this ‘email’ scope is included here then it better be output in the
scopes list in doRequestOAuth otherwise nothing works. Why was it even
here?
2016-01-05 12:06:18 -08:00
12ccd58eae
Fix error
2016-01-05 08:54:14 -08:00
95bb288e38
Back to scopes by api
2016-01-05 08:18:19 -08:00
5c64f0825f
Fix UTF error in getDelegates
2016-01-04 13:10:25 -08:00
25e97b97d4
Sort scopes in doRequestOauth, move scope over for readability
2016-01-04 12:57:23 -08:00
d258d4da63
Refactor doRequestOAuth
...
The selected scopes list can't be created until completion; otherwise
turning off a scope in one API turns it off in all other APIs.
Elimination of child scopes is still supported in select-default.
Top level API list is sorted.
2016-01-04 12:23:54 -08:00
cb79688a73
in doRequestOAuth, sort list by API title
2016-01-04 10:52:33 -08:00
dae75f6234
Fix typo in email-audit-v1.jsom
2016-01-04 06:02:10 -08:00
0209b51c4d
Clean up no setCurrentAPIScopes, api, version not needed
...
No scopes error message changed to take API title
2016-01-04 05:48:07 -08:00
f35c188496
Finish refactoring doRequestOAuth, make selected_scopes a set
2016-01-03 23:24:40 -08:00
c00d820c75
Eliminate extraneous loop
2016-01-03 21:42:32 -08:00
69689e286b
Fix setCurrentAPIScopes to work for both buildGAPIObject and OAuthInfo
2016-01-03 20:39:34 -08:00
5697580bd0
Fix typo
2016-01-03 20:21:33 -08:00
2288e99e56
Dynamic scope cleanup
2016-01-03 20:19:40 -08:00
c8fd6e76af
Merge remote-tracking branch 'jay0lee/master'
2016-01-03 16:04:56 -08:00
23cb9afec7
Merge remote-tracking branch 'jay0lee/master'
...
# Conflicts:
# src/gam.py
2016-01-03 16:04:44 -08:00
20e8175ae1
further updates to allow scopes to be saved as list
...
also determine default scopes based on substrings
2016-01-03 14:10:20 -05:00
3a38dceb5f
Dynamic scope repair
...
The last changes broke GData services and gam oath info
2016-01-03 10:00:12 -08:00
c885cdefbb
Merge remote-tracking branch 'jay0lee/master'
2016-01-03 07:16:04 -08:00
b7d5374718
refactor saving of scopes to be a single list, not per API
...
-allows for APIs which have overlapping scopes (Drive, Apps Activity)
-buildGAPIObject() can dynamically decide which scopes to ask for based
on:
-scopes that API claims to use (discovery document)
-scopes that user has prevously selected
-still need to fixup GData API calls to make do same.
2016-01-03 10:11:12 -05:00
59a0aadd72
ignore gamscopes.json
2016-01-03 09:20:56 -05:00
a3f218a98d
Merge pull request #164 from taers232c/master
...
Dynamic scopes update, other cleanup
2016-01-03 09:18:36 -05:00
0424ced649
Reorder cancel and continue/back in doRequestOAuth, add missing .keys()
2016-01-02 13:35:08 -08:00
9f75968684
More clean up of doRequestOAuth
2016-01-02 12:38:45 -08:00
90fd503838
If GA_DOMAIN not set, derive domain from GAM_ADMIN if defined
...
If neither set, we have to decide what to do.
2016-01-02 11:59:37 -08:00
a7a3f2eef6
Clean up input handling in doRequestOauth
2016-01-02 09:52:10 -08:00
008a65329e
gam oauth info now verifies scopes
2016-01-02 09:10:22 -08:00
2390c4284e
Clearing cache_dir has to come after directory check
2016-01-02 07:44:48 -08:00
75483185d6
Clean up
...
Clean up handling of missing json files
Clean up processing environment variables, signal files
2016-01-02 07:09:15 -08:00
acb21cb926
Clean signature printing
2016-01-01 14:39:10 -08:00
c0ee674060
Full scopes list causes internal error, back (for now) to API specific list
2016-01-01 14:04:01 -08:00
7d69c8e3bd
Dynamic scopes cleanup
...
I deleted the 'email' scope because it caused everything to fail as
it's not (and never was) authorized. What was/is it for?
2016-01-01 12:13:02 -08:00
38a37c49de
Merge remote-tracking branch 'jay0lee/master'
2016-01-01 08:11:01 -08:00
a36478b1f5
Merge pull request #163 from taers232c/master
...
Dynamic scopes first steps
2016-01-01 11:09:56 -05:00
bcb17cd0a5
in doRequestOauth, initialize API use_scopes from gamscopes.json if available
2016-01-01 07:40:22 -08:00
1ec164a25a
Bring gam oauth delete back, give creation message
2016-01-01 06:50:16 -08:00
571a9dcb3e
Handle no scopes for API
...
This should probably call doRequestOAuth rather than bailing out
2015-12-31 23:37:15 -08:00
a0ac6265e9
If SetGlobalVariables calls doRequestOAuth, don't call again if command is oauth create
2015-12-31 23:18:44 -08:00
ea6f49f7be
Have OAuthInfo print API scope table
2015-12-31 22:54:07 -08:00
0470680a4d
Add some error checking for gamscopes.json
2015-12-31 20:43:33 -08:00