dataset/seed/applicationservice/2022.03.08/oauth2-client/funcs/oauth2_client.py

11 lines
399 B
Python
Raw Normal View History

2022-05-07 08:11:18 +02:00
from risotto.utils import multi_function as _multi_function
@_multi_function
2022-03-12 07:56:17 +01:00
def calc_oauth2_client_external(external, location, *extras):
if not external or not location or None in extras:
return
2022-05-07 08:11:18 +02:00
if isinstance(external, list):
return [f'https://{exter}{location[0]}' + ''.join(extras) for exter in external]
2022-03-12 07:56:17 +01:00
return f'https://{external}{location[0]}' + ''.join(extras)