ejochman
f3d2ef86f8
Make get_token_value refresh credentials on its own, when necessary ( #1152 )
...
Any other transaction utilizing credentials will already refresh them,
as necessary, through the use of AuthorizedHttp. `get_token_value` is
one unique case where we're not actually attaching the credentials to
the HTTP request, but rather using one if its attributes as the payload.
The request, itself, is unauthenticated, so it doesn't know to refresh
on its own. Rather, the caller needs to make sure that the id_token
payload is for a currently-valid set of credentials.
2020-04-06 21:05:31 -04:00
Ross Scroggs
c4f1a7eb70
Standarize usage/usageparameters under gam report ( #1151 )
...
gam report usage customer|user ...
gam report usageparameters customer|user
2020-04-06 19:52:12 -04:00
Jay Lee
c83430a537
ensure get_admin_credentials only returns fresh creds
2020-04-06 14:18:37 -04:00
Jay Lee
c398d30f37
Merge branch 'master' of https://github.com/jay0lee/GAM
2020-04-06 12:44:39 -04:00
Jay Lee
f60246846f
remove debug stuff from reports.py
2020-04-06 12:43:12 -04:00
Ross Scroggs
3184de1392
Credentials must be current to get token values ( #1149 )
2020-04-06 11:23:11 -04:00
Jay Lee
921324d968
GAM 5.04
2020-04-06 11:21:59 -04:00
Jay Lee
c74cdeb773
fix report orgUnitID
2020-04-06 10:28:38 -04:00
Jay Lee
518ad04815
fix for orgUnits, add travis test
2020-04-06 09:14:09 -04:00
Jay Lee
12ca54f6ba
gam usage and gam usageparameters commands
...
usageparameters prints the parameters reported for customer and user
usage. usage generates a CSV of specified parameters over a given date
range. From a Google Sheet it's useful to add a chart to get a nice
graph showing changes in G Suite service usage by users over time.
2020-04-06 08:48:00 -04:00
Jay Lee
0a0ca9ef03
http.request is a function, should be using http.credentials
2020-04-02 12:09:52 -04:00
Jay Lee
9ef7b2f80a
Merge branch 'master' of https://github.com/jay0lee/GAM
2020-04-01 09:20:54 -04:00
Jay Lee
86b0ed0a04
handle unicode body in send_email
2020-04-01 09:20:38 -04:00
Ross Scroggs
65e77e07a8
Fix typo ( #1144 )
2020-03-31 21:23:45 -04:00
Ross Scroggs
e5e5db335d
Add updateevent documentation, fix bug ( #1142 )
...
* Add updateevent documentation
* Fix calendar bug
* updateevent doesn't use id|eventid
2020-03-30 21:31:35 -04:00
Ross Scroggs
490d0a7815
Fix calendar bugs ( #1141 )
2020-03-30 19:16:59 -04:00
Jay Lee
7ff7c71b4e
Merge branch 'master' of https://github.com/jay0lee/GAM
2020-03-30 16:01:19 -04:00
Jay Lee
13fa01c4e2
Update gam-install.sh
2020-03-30 16:01:00 -04:00
Ross Scroggs
d3dfcc3248
Fix bug (424), make code consistent (447-451) ( #1139 )
2020-03-30 11:34:56 -04:00
Jay Lee
b4959547a3
GAM 5.03, fix x86 Windows and ARM Linux
2020-03-30 09:46:17 -04:00
Jay Lee
0ffb2ab7a7
fix build testing of python/ssl, fix staticx on Xenial
2020-03-30 06:56:08 -04:00
Jay Lee
fa4f18b59e
more travis cleanup
2020-03-29 20:22:55 -04:00
Jay Lee
bdbe034c13
more travis
2020-03-29 20:01:09 -04:00
Jay Lee
b677e8b4b2
Fix svars-write.py for Testing instances
2020-03-29 19:55:57 -04:00
Jay Lee
68745703f8
fix testing test, remove trusty
2020-03-29 19:43:34 -04:00
Jay Lee
cbdaa143ea
Travis logic cleanup
2020-03-29 17:54:58 -04:00
Ross Scroggs
ff92cb53cc
Google seems to have switched the menu back ( #1137 )
2020-03-28 21:00:26 -04:00
Jay Lee
3890af9e1a
Drop precise, upgrade patchelf
2020-03-28 15:49:43 -04:00
Jay Lee
21d70bbcb2
figure out why we lost legacy package
2020-03-28 14:12:03 -04:00
Jay Lee
1f80e029b8
fix bash if or
2020-03-28 13:48:04 -04:00
Jay Lee
9372b87d5b
test staticx on trusty, stop puling osx10.12
2020-03-28 13:31:55 -04:00
Jay Lee
be3f886a57
Report GAM type (source, pyinstaller, staticx) with gam version
2020-03-28 12:36:37 -04:00
Ross Scroggs
896d7a045a
This will make GAM and GAMADV-XTD3 consistent ( #1135 )
2020-03-28 09:14:02 -04:00
Jay Lee
545c9ea8dd
fix 32-bit Win
2020-03-27 21:49:33 -04:00
Jay Lee
ae1c658065
more windows before install cleanup
2020-03-27 21:23:55 -04:00
Jay Lee
ebea409db6
Reorganize windows before install
2020-03-27 20:31:52 -04:00
Jay Lee
f406fa2445
allow setting state on print matters
2020-03-27 18:58:47 -04:00
Jay Lee
97784c92cf
Unified Travis setup per-OS
2020-03-27 16:11:29 -04:00
Jay Lee
8c59241abb
Install/use older MSVC to compile bootloader
2020-03-27 15:05:38 -04:00
Jay Lee
73bfd6abaa
try upgrading chocolatey packages to solve bootloader compile issue
2020-03-27 14:19:26 -04:00
Jay Lee
b4ccc83696
try to see why strnlen isn't detected
2020-03-27 13:38:26 -04:00
Jay Lee
1b557d9769
Merge branch 'master' of https://github.com/jay0lee/GAM
2020-03-27 12:42:15 -04:00
Jay Lee
1f69f55437
hack to fix PyInstaller bootloader compile on Travis Windows. Fixes #1112
2020-03-27 12:42:10 -04:00
Ross Scroggs
2c049dc38e
Pylint cleanup, bug fixing ( #1134 )
2020-03-27 09:07:44 -04:00
Jay Lee
276c14f507
temp turn off short_url tests
2020-03-26 20:43:23 -04:00
Jay Lee
117538754e
Fix check service account and short URLs
2020-03-26 20:17:28 -04:00
Jay Lee
f0c22e32df
GAM 5.01
2020-03-26 18:18:55 -04:00
Ross Scroggs
30d480debc
Fix oauth create ( #1133 )
2020-03-26 18:17:35 -04:00
Jay Lee
d8bbf71c19
MacOS 10.14.6
2020-03-26 17:47:43 -04:00
Jay Lee
574a29363c
missing import
2020-03-26 16:07:31 -04:00