From 1f2328732f6cc37efd29dc6149e830ef45910966 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Sat, 12 Mar 2022 07:56:17 +0100 Subject: [PATCH] add oauth2 function --- .../2022.03.08/oauth2-client/funcs/oauth2_client.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 seed/applicationservice/2022.03.08/oauth2-client/funcs/oauth2_client.py diff --git a/seed/applicationservice/2022.03.08/oauth2-client/funcs/oauth2_client.py b/seed/applicationservice/2022.03.08/oauth2-client/funcs/oauth2_client.py new file mode 100644 index 00000000..7181e842 --- /dev/null +++ b/seed/applicationservice/2022.03.08/oauth2-client/funcs/oauth2_client.py @@ -0,0 +1,4 @@ +def calc_oauth2_client_external(external, location, *extras): + if not external or not location or None in extras: + return + return f'https://{external}{location[0]}' + ''.join(extras)