dataset/seed/applicationservice/2022.03.08/oauth2-client/funcs/oauth2_client.py
2022-05-07 08:11:18 +02:00

10 lines
399 B
Python

from risotto.utils import multi_function as _multi_function
@_multi_function
def calc_oauth2_client_external(external, location, *extras):
if not external or not location or None in extras:
return
if isinstance(external, list):
return [f'https://{exter}{location[0]}' + ''.join(extras) for exter in external]
return f'https://{external}{location[0]}' + ''.join(extras)