lfidapi for lftools 70/14670/23
authorAric Gardner <agardner@linuxfoundation.org>
Thu, 21 Feb 2019 21:06:50 +0000 (16:06 -0500)
committerAric Gardner <agardner@linuxfoundation.org>
Mon, 4 Mar 2019 18:00:29 +0000 (13:00 -0500)
commitc831fd818eb6ab19666e54feab57379fab274bd3
tree8cda754c76c126a5a9cefc9fba9052f3e262e893
parent8506cb92303169c23539e8aac8f2a9e1d574f23a
lfidapi for lftools

Note: as soon as by the end of the year
(whenever all clients have been migrated from LDAP to Auth0)
All groups will migrate to the "IAM"
product at which point this will be tooled to a different API.

All api methods implemented:

(search_members)
(user)
(invite)
(create_group)

uses oauth2_helper to retreive access_token from client_secret and
refresh_token

reads secrets from ~/.config/lftools/lftools.ini

[lfid]
clientid =
client_secret =
refresh_token =
token_uri = https://identitystg.linuxfoundation.org/oauth2/token
url = https://identitystg.linuxfoundation.org/rest/auth0/

Secrets are saved in LastPass under Release Engineering as
"Identity Groups REST API Client".

Change-Id: Ib7f575dda0c73a99ca65f0a7f87d2b62f85da03e
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
.coafile
docs/commands/index.rst
docs/commands/lfidapi.rst [new file with mode: 0644]
lftools/cli/__init__.py
lftools/cli/lfidapi.py [new file with mode: 0755]
lftools/lfidapi.py [new file with mode: 0755]
lftools/oauth2_helper.py [new file with mode: 0644]
releasenotes/notes/lfidapi-74c7a5457203eec2.yaml [new file with mode: 0644]
requirements.txt
setup.cfg
shell/lfidapi_add_remove_users [new file with mode: 0755]