Skip to content

Commit d8fa47a

Browse files
sliu008viviant100
authored andcommitted
Feature/update client (#10)
* update get_edl_token function call * update token dispenser client_id for all tokens, this should make dispenser more robust and allow user to change client_id for all tokens
1 parent b272ea3 commit d8fa47a

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

token_dispenser/token_dispenser_lambda.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,7 @@ def handler(event, context):
216216
:return: Exception or json which represents a token structure
217217
"""
218218

219-
# Determine client_id based on action(or lack thereof)
220-
if event.get("action") == "edl":
221-
client_id = event.get("edl_user")
222-
else:
223-
client_id = event.get('client_id')
219+
client_id = event.get('client_id')
224220

225221
if not client_id or client_id.strip() == "":
226222
raise RuntimeError('client_id is a required field')

0 commit comments

Comments
 (0)