@@ -142,23 +142,28 @@ <h1 class="title">Module <code>supertokens_python.recipe.dashboard.api.multitena
142
142
143
143
# query param may be passed if we are creating a new third party config, check and update accordingly
144
144
145
- if third_party_id in ["okta", "active-directory", "boxy-saml", "google-workspaces"]:
146
- if third_party_id == "okta":
145
+ if any(
146
+ [
147
+ third_party_id.startswith(tp_id)
148
+ for tp_id in ["okta", "active-directory", "boxy-saml", "google-workspaces"]
149
+ ]
150
+ ):
151
+ if third_party_id.startswith("okta"):
147
152
okta_domain = options.request.get_query_param("oktaDomain")
148
153
if okta_domain is not None:
149
154
additional_config = {"oktaDomain": okta_domain}
150
- elif third_party_id == "active-directory":
155
+ elif third_party_id.startswith( "active-directory") :
151
156
directory_id = options.request.get_query_param("directoryId")
152
157
if directory_id is not None:
153
158
additional_config = {"directoryId": directory_id}
154
- elif third_party_id == "boxy-saml":
159
+ elif third_party_id.startswith( "boxy-saml") :
155
160
boxy_url = options.request.get_query_param("boxyUrl")
156
161
boxy_api_key = options.request.get_query_param("boxyAPIKey")
157
162
if boxy_url is not None:
158
163
additional_config = {"boxyURL": boxy_url}
159
164
if boxy_api_key is not None:
160
165
additional_config["boxyAPIKey"] = boxy_api_key
161
- elif third_party_id == "google-workspaces":
166
+ elif third_party_id.startswith( "google-workspaces") :
162
167
hd = options.request.get_query_param("hd")
163
168
if hd is not None:
164
169
additional_config = {"hd": hd}
0 commit comments