Ross Scroggs
15a16135e3
Changed code to shorten the public key lifetime in gam create|user project to stay within a Google limit. ( #1127 )
2020-03-25 06:32:11 -04:00
ejochman
4444974a9e
Centralize OAuth2.0 Credential logic ( #1126 )
...
* Centralize OAuth2.0 Credential logic
Adds a Credentials class that centralizes and handles most existing
logic related to OAuth2.0 credentials, including generation, storage,
file locking, and attribute retrieval. This is a step towards
minimizing the duplicated code that handles credentials in various
methods. The goal is to eventually get to a point where there are 2
credential entry points: `auth.get_admin_credentials()` and
`auth.get_credentials_for_user(user)`. Then, we can slowly move toward
using impersonated credentials for all operations and scrap the need
for user consented credentials all together.
* Skip test_delete_removes_lock_file when testing on Windows
2020-03-25 06:31:47 -04:00
Ross Scroggs
1a32f2a6f8
Handle optional notprimary/primary for <UserAttribute> im and website ( #1125 )
2020-03-22 16:35:10 -04:00
Ross Scroggs
ff43f8474e
Google changed project creation ( #1124 )
...
* Google changed project creation
* Work around travis issue
2020-03-22 14:06:46 -04:00
Ross Scroggs
e7eea5b9d2
Fix code to account for Google API change that prevented clearing a user's recovery phone. ( #1116 )
...
Before you had to pass None and the value, now you pass an empty string just like recovery email
2020-03-13 08:24:22 -04:00
Jay Lee
a13fef6237
Merge branch 'master' of https://github.com/jay0lee/GAM
2020-03-13 07:37:55 -04:00
Jay Lee
357c295fec
retry false daily limit errors on org create
2020-03-13 07:37:51 -04:00
Ross Scroggs
a7a7bc3ebe
Cleanup ( #1115 )
2020-03-13 07:36:22 -04:00
Jay Lee
5d02d73737
break out reports, customer and cros
2020-03-10 21:47:22 -04:00
Jay Lee
b41a6b1d60
resources, buildings and features to resource.py
2020-03-09 20:15:19 -04:00
Jay Lee
24282e4289
fix reports
2020-03-09 07:57:23 -04:00
Jay Lee
8659df3c4c
storage API, vault fixes
2020-03-09 06:55:46 -04:00
Jay Lee
a9917432d4
More fixes
2020-03-09 04:49:44 -04:00
Jay Lee
11efa4fc9e
Move Vault API commands to gapi/vault.py
2020-03-08 21:59:00 -04:00
Jay Lee
3904177d16
more fixes
2020-03-08 17:22:33 -04:00
Jay Lee
e1d76a93c9
Move Calendar API commands to gapi/calendar.py
...
The primary challenge here is building the gapi object. For now I've
solved that with a "import __main__" but that's hacky and not the hope
for long term.
2020-03-08 16:50:26 -04:00
Jay Lee
ed5f743422
use patch for event dates if possible
2020-03-08 13:27:27 -04:00
Jay Lee
ff55b452eb
gam calendar ... infoevent command, few tests
2020-03-07 20:21:49 -05:00
Jay Lee
62a0a064aa
allow updating various event attributes
2020-03-07 19:15:40 -05:00
Jay Lee
8d5c8f33f2
gam calendar <calendar> updateevent command
2020-03-07 16:54:55 -05:00
Ross Scroggs
c1e7af620f
Add parameter to enable adding Hangouts/Meet link toevent ( #1111 )
2020-03-06 06:09:17 -05:00
Jay Lee
9e0641d8e1
fix retry_reasons invocations
2020-03-05 13:25:34 -05:00
Jay Lee
e8d333a46b
Merge branch 'master' of https://github.com/jay0lee/GAM
2020-03-05 10:08:25 -05:00
Jay Lee
85f8a012c7
move force file flush into fileutils.close_file
2020-03-05 10:08:04 -05:00
Ross Scroggs
0f8bf26746
Allow hangouts/meet link to be included in an event ( #1110 )
2020-03-02 18:34:59 -05:00
Ross Scroggs
ee89aa649a
Appease pylint, cleanup ( #1109 )
...
* Appease pylint, cleanup
* Fix typo
2020-03-02 07:53:36 -05:00
Jay Lee
8cc401a5bf
Move print_json into display.py and optimize
2020-03-01 17:30:01 -05:00
Ross Scroggs
41521f4c04
Fix gam report user/customer not being recognized ( #1103 )
2020-02-21 15:25:23 -05:00
Jay Lee
f35067c9ba
Merge branch 'master' of https://github.com/jay0lee/GAM
2020-02-20 12:47:18 -05:00
Jay Lee
4cd538e8c1
check key age, colors for check serviceaccount
2020-02-20 12:47:02 -05:00
Ross Scroggs
9d0de5df22
Fix f string error ( #1102 )
...
I apologize
2020-02-20 11:16:55 -05:00
Jay Lee
19e9e9e287
Merge branch 'master' of https://github.com/jay0lee/GAM
2020-02-19 11:31:20 -05:00
Jay Lee
cd450a48e6
Check key age on check serviceaccount
2020-02-19 11:31:05 -05:00
Ross Scroggs
cd1ca91b7f
Fix bug in checking fro 32/64 bit mismatch ( #1101 )
2020-02-19 11:10:10 -05:00
Jay Lee
0ee3f11345
decode/verify id token on each refresh
2020-02-14 12:05:13 -05:00
Ross Scroggs
b90f291998
Don't set consent screen on gam use project ( #1095 )
2020-02-14 10:15:23 -05:00
Jay Lee
d34034065f
Update gam.py
2020-02-13 17:00:57 -05:00
Jay Lee
ae425d25ec
be clearer about who we're comparing time with
2020-02-13 16:14:13 -05:00
Jay Lee
3c98fc460a
fix user agent
2020-02-13 15:31:25 -05:00
Jay Lee
7725d32788
Simplify service account DwD by prepopulating fields with clientid/scopes
2020-02-13 14:54:14 -05:00
Jay Lee
bbd4dd736e
Project create improvements
...
- Programmatically set Consent (Branding page) saving a user step
- record created_by in client_secrets.json for easier backtracking
- use local project-apis.txt if it exists
2020-02-13 11:53:51 -05:00
Ross Scroggs
a1967bc706
Improve error handling when invalid report is entered ( #1094 )
...
* Improve error handling when invalid report is entered
* Add chat to report list
* Use discovery document
* This will work
* Fix formatting
* These aren't necessary
* Yes, these are necessary because the user may enter the version without _ and gam has has to add it back
2020-02-10 18:22:55 -05:00
Ross Scroggs
f085dac4a0
f string formatting, final of many ( #1093 )
...
* f string formatting, final of many
Standardize (i/count) handling
Add doc_string and follow PEP8 naming convention for page_message routines
* Clean up items in gapi.got_total_items_msg and gapi.got_total_items_first_last_msg
2020-02-10 09:25:44 -05:00
Ross Scroggs
5092e3fc65
f string formatting, sixth of many ( #1091 )
...
Got message cleanup
2020-02-09 09:05:05 -05:00
Ross Scroggs
0f0cb0f28d
f string formatting, fifth of many ( #1090 )
2020-02-08 16:23:05 -05:00
Ross Scroggs
47cfdedd1f
f string formatting, fourth of many ( #1089 )
2020-02-08 12:44:56 -05:00
Ross Scroggs
6347e1f779
f string formatting, first of many ( #1088 )
...
* f string formatting, first of many
* f string formatting, second of many
* f string formatting, third of many
2020-02-08 10:54:14 -05:00
Ross Scroggs
0afffb4ee2
Appease pylint over import order ( #1087 )
2020-02-07 17:48:15 -05:00
Jay Lee
f644727e1c
crypt vs crypt.crypt
2020-02-07 13:08:01 -05:00
Jay Lee
a00c20296e
Merge branch 'master' of https://github.com/jay0lee/GAM
2020-02-07 13:00:57 -05:00