@@ -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 ["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"):
147152 okta_domain = options.request.get_query_param("oktaDomain")
148153 if okta_domain is not None:
149154 additional_config = {"oktaDomain": okta_domain}
150- elif third_party_id == "active-directory":
155+ elif third_party_id.startswith( "active-directory") :
151156 directory_id = options.request.get_query_param("directoryId")
152157 if directory_id is not None:
153158 additional_config = {"directoryId": directory_id}
154- elif third_party_id == "boxy-saml":
159+ elif third_party_id.startswith( "boxy-saml") :
155160 boxy_url = options.request.get_query_param("boxyUrl")
156161 boxy_api_key = options.request.get_query_param("boxyAPIKey")
157162 if boxy_url is not None:
158163 additional_config = {"boxyURL": boxy_url}
159164 if boxy_api_key is not None:
160165 additional_config["boxyAPIKey"] = boxy_api_key
161- elif third_party_id == "google-workspaces":
166+ elif third_party_id.startswith( "google-workspaces") :
162167 hd = options.request.get_query_param("hd")
163168 if hd is not None:
164169 additional_config = {"hd": hd}
0 commit comments