Jay Lee
8a26e99dfc
don't store scopes
2019-05-28 10:49:10 -04:00
Ross Scroggs
9e2dd11617
Handle missing credentials, e.g., two gam oauth deletes in a row ( #938 )
...
* Handle missing credentials, e.g., two gam oauth deletes in a row
* Add scopes back to oauth2.txt
If scopes are in oauth2.txt, an advanced gam user can use it unchanged. My code does preemptive error checking to detect API scope mismatches early on.
* Suppress token details unless requested
* Bring on the details
* Update scopes used to make oauth2.txt
2019-05-27 10:25:38 -04:00
Ross Scroggs
19f01007f4
Clean up random string generation, cleanup ( #937 )
...
* Clean up random string generation
You don't want printable.
string.printable: String of characters which are considered printable. This is a combination of digits, letters, punctuation, and whitespace.
string.whitespace: A string containing all characters that are considered whitespace. On most systems this includes the characters space, tab, linefeed, return, formfeed, and vertical tab.
* Cleanup
2019-05-25 17:40:20 -04:00
Jay Lee
2c4bbbbbfb
cleanup random string generation
2019-05-23 21:26:41 -04:00
Jay Lee
71536c50a2
set auth prompts equivalent to what we had with oauth2client
2019-05-23 11:10:24 -04:00
Jay Lee
1d118a9ca3
use oldest domain creation as customer creation date
2019-05-23 10:19:37 -04:00
Jay Lee
94f6c45291
expand info for gam oauth info
2019-05-22 13:00:06 -04:00
Jay Lee
fd4a64f6a7
gam oauth refresh to force refresh
2019-05-22 12:42:44 -04:00
Jay Lee
d8ba15ab98
iss seems to be with and without https://
2019-05-22 12:22:57 -04:00
Jay Lee
a0a2e1359e
more cleanup for google-auth
2019-05-22 12:12:31 -04:00
Jay Lee
f9af688bea
replace deprecaed oauth2client with google-auth
...
Early work, much remains to clean things up and patch all the remaining
holes...
2019-05-22 10:17:00 -04:00
Jay Lee
8829bc3a65
filter activity reports by orgUnitID
2019-05-20 10:44:51 -04:00
Ross Scroggs
fddd77e87c
Update events ( #932 )
...
* Update printevents
The column header should be calendarId not primaryEmail as the user could specify a resource calendar for instance.
The order should be calendarId,id: major,minor as in other print commands.
* Event cleanup
* More event cleanup
2019-05-18 10:10:53 -04:00
ejochman
eed3fb1ed9
Remove unused imports ( #931 )
...
Also corrects identified common misspellings
2019-05-18 10:08:02 -04:00
Jay Lee
347688ac8c
Merge branch 'master' of https://github.com/jay0lee/GAM
2019-05-17 12:07:54 -04:00
Jay Lee
37ce64acb7
print and move events
2019-05-17 12:07:24 -04:00
Ross Scroggs
4b8bc4e7ea
Fix Issue #917 ( #930 )
2019-05-17 09:28:28 -04:00
Jay Lee
65f94ff465
lowercase on AUE guess, many more exceptions
2019-05-16 11:55:37 -04:00
Ross Scroggs
1b010fbd07
Optimize AUE guessing ( #928 )
...
Only look up a model once, cache the result
2019-05-16 11:44:05 -04:00
Ross Scroggs
4808f18ca0
Cleanup guessAUE ( #926 )
2019-05-15 18:05:32 -04:00
Jay Lee
c05c040241
Guess CrOS AUE date
2019-05-15 12:30:22 -04:00
Ross Scroggs
3d3f2b535b
Fix bug, encoded deviceId not included in output ( #924 )
2019-05-14 10:42:10 -04:00
Ross Scroggs
49bf1f675a
Code cleanup ( #923 )
...
keys(), we don't need no stinkin' keys()
2019-05-12 17:08:13 -04:00
Jay Lee
690302f2b3
Full support for archived user
2019-05-11 11:24:06 -04:00
Ross Scroggs
6d4a34d971
Code cleanup ( #921 )
2019-05-10 09:57:15 -04:00
Jay Lee
39f5b1dbc2
more GCP fixes, testing
2019-05-09 12:04:56 -04:00
Jay Lee
4178b4a61e
fix printer reg py3.5, less aggressive bulk user on travis
2019-05-09 11:16:21 -04:00
Ross Scroggs
0cffb8202d
Update encoding so Python REs with \ can be processed ( #918 )
...
* Update encoding so Python REs with \ can be processed
Fix bug in printShowDelegates
* uid:ResourceId can't be downshifted
* Appease pylint, fix print formatting
* Fix row filter count matching
* Fix indentation
2019-05-09 10:34:12 -04:00
Jay Lee
70de8b8719
print archived state for users, fix delegate count
2019-05-07 17:57:11 -04:00
Jay Lee
2713bd9bfc
show delegate count
2019-05-07 15:23:29 -04:00
Jay Lee
b34b2d8e2a
Allow identifying resources by id
2019-05-07 13:59:00 -04:00
Jay Lee
33f5e74e45
Python 3.5 fix
2019-05-06 14:30:22 -04:00
Ross Scroggs
78c71babda
Python 3.5/6 don't have the version attributes ( #914 )
...
* Python 3.5/6 don't have the version attributes
* Code cleanup
* Exit on unsupported request
* Change message
* Fix error response handling
ERROR: Authentication Token Error - ('invalid_grant: Invalid email or User ID', '{\n "error": "invalid_grant",\n "error_description": "Invalid email or User ID"\n}')
2019-05-06 10:46:39 -04:00
ejochman
004b51f3cd
Gate usage on minimum supported Python version ( #912 )
...
3.7 is recommended, but 3.5 should be currently supported
2019-05-03 17:59:51 -04:00
Ross Scroggs
1046716304
Fix for Python 3 ( #913 )
...
* Fix for Python 3
* Another fix for Python 3
2019-05-03 17:58:31 -04:00
Ross Scroggs
187b7a8c39
Multiple updates ( #910 )
...
* Use integer division to get minutes
* Update to latest Drive API
* Clean up language output formatting; encode control characters in mobile deviceId
2019-05-02 12:44:30 -04:00
Jay Lee
6353ddf58a
get/set Gmail language
2019-04-29 15:36:49 -04:00
Jay Lee
49fc1c4f7e
remove noverifyssl.txt in favor of GAM_CA_FILE
...
completely disabling SSL hostname verification is very dangerous and
unnecessary. Instead, allow admin to set GAM_CA_FILE to point to their
own file with certificate authorities. This file would presumably
include their own certificate authority when doing "man in the middle"
SSL/TLS inspection.
2019-04-29 10:21:56 -04:00
Ross Scroggs
097eb07fcc
Use regular expressions in GAM_CSV_HEADER_FILTER ( #907 )
...
* Use regular expressions in GAM_CSV_HEADER_FILTER
* Handle no matching column titles
2019-04-29 09:39:31 -04:00
Ross Scroggs
00f992259b
Python 3 cleanup ( #906 )
2019-04-28 13:31:34 -04:00
Ross Scroggs
4098a9b70f
Update GAM_CSV_ROW_FILTER ( #901 )
...
* Update GAM_CSV_ROW_FILTER
* Improve GAM_CSV_ROW_FILTER
* Improve again GAM_CSV_ROW_FILTER
* Improve error messages
2019-04-25 13:11:11 -04:00
Jay Lee
b617d5cab0
TLS min/max config options with sane defaults
2019-04-25 13:04:26 -04:00
Ross Scroggs
0cf964073d
Code cleanup ( #900 )
...
* Code cleanup
* Add missing _
* Add missing character
One character was missing from the prefix, I assumed :, did you want a space?
* Put missing variable back
* More cleanup repairs
2019-04-24 13:40:35 -04:00
Ross Scroggs
351e9ab929
Not needed in Python 3 ( #898 )
2019-04-23 11:05:29 -04:00
Jay Lee
f0d0345fcd
'gam version extended' to show OpenSSL version, TLS used
2019-04-23 10:31:10 -04:00
Jay Lee
1c8cb1a617
dynamic cacerts.txt, r for text, rb for data
2019-04-22 15:59:02 -04:00
Jay Lee
bc065d4b31
split lines again
2019-04-22 14:23:27 -04:00
Ross Scroggs
71c9d90b39
pylint cleanup, Python 3 cleanup/fixes ( #897 )
...
* pylint cleanup, Python 3 cleanup/fixes
* More python 3 fixes
2019-04-22 14:19:31 -04:00
Jay Lee
7e37e7298e
Lots of py3 fixes
2019-04-21 21:13:11 -04:00
Jay Lee
457ce15a4c
Move GAM to use Python 3. Fixes #392 ( #896 )
...
* 2to3 cleanup, import changes, httplib2 py3 version, fix passlib deprecation
* Travis Python 3 move
* default to Trusty for Python 3.7.3
* use daadsnakes PPA
* start with default python
* --yes
* 3.5 for now, may tighten in future
* compile 3.7 from source
* osx and linux
* Update linux-x86_64-before-install.sh
* pip3
* bash env, more debug
* quiet down the make
* alias
* kill virtualenv
* 2.6
* again
* again
* deactivate
* pip3
* pip3
* Update linux-x86_64-before-install.sh
* Update linux-x86_64-before-install.sh
* Update .travis.yml
* cleanup
* give xenial a shot
* 3.7.3, trusty
* 3.7.3, xenial
* pip3
* no sudo
* StaticX for a truly static Linux build
* StaticX for realz
* Install StaticX deps
* log size and run times
* actually time
* remove old gam
* distro
* debug pyinstaller
* Fix StaticX path discovery
* Detect old glibc and install legacy GAM build
* report version
* fix
* fix distro list
* StaticX workaround
* travis staticx builds
* remove 3P libraries from GAM
These libraries can (and should) be installed via
pip install -r requirements.txt
* Have travis install reqs
* fix cacert (static for now)
* remove bad gam.spec
* fix requirements.txt location
* try another path
* deploy all branches
* win/osx fix attempts
2019-04-21 17:03:07 -04:00