Skip to content

Commit 11f56cd

Browse files
SattvikSattvik
authored andcommitted
adding dev-v0.29.1 tag to this commit to ensure building
1 parent 1039c20 commit 11f56cd

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

html/supertokens_python/recipe/dashboard/api/multitenancy/get_third_party_config.html

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,23 +142,28 @@ <h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.multitena
142142

143143
# query param may be passed if we are creating a new third party config, check and update accordingly
144144

145-
if third_party_id in [&#34;okta&#34;, &#34;active-directory&#34;, &#34;boxy-saml&#34;, &#34;google-workspaces&#34;]:
146-
if third_party_id == &#34;okta&#34;:
145+
if any(
146+
[
147+
third_party_id.startswith(tp_id)
148+
for tp_id in [&#34;okta&#34;, &#34;active-directory&#34;, &#34;boxy-saml&#34;, &#34;google-workspaces&#34;]
149+
]
150+
):
151+
if third_party_id.startswith(&#34;okta&#34;):
147152
okta_domain = options.request.get_query_param(&#34;oktaDomain&#34;)
148153
if okta_domain is not None:
149154
additional_config = {&#34;oktaDomain&#34;: okta_domain}
150-
elif third_party_id == &#34;active-directory&#34;:
155+
elif third_party_id.startswith(&#34;active-directory&#34;):
151156
directory_id = options.request.get_query_param(&#34;directoryId&#34;)
152157
if directory_id is not None:
153158
additional_config = {&#34;directoryId&#34;: directory_id}
154-
elif third_party_id == &#34;boxy-saml&#34;:
159+
elif third_party_id.startswith(&#34;boxy-saml&#34;):
155160
boxy_url = options.request.get_query_param(&#34;boxyUrl&#34;)
156161
boxy_api_key = options.request.get_query_param(&#34;boxyAPIKey&#34;)
157162
if boxy_url is not None:
158163
additional_config = {&#34;boxyURL&#34;: boxy_url}
159164
if boxy_api_key is not None:
160165
additional_config[&#34;boxyAPIKey&#34;] = boxy_api_key
161-
elif third_party_id == &#34;google-workspaces&#34;:
166+
elif third_party_id.startswith(&#34;google-workspaces&#34;):
162167
hd = options.request.get_query_param(&#34;hd&#34;)
163168
if hd is not None:
164169
additional_config = {&#34;hd&#34;: hd}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy