File tree Expand file tree Collapse file tree 9 files changed +1
-26
lines changed
supertokens_python/recipe Expand file tree Collapse file tree 9 files changed +1
-26
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,6 @@ async def handle_authorisation_url_api(
6666 result = await api_implementation .authorisation_url_get (
6767 provider = provider ,
6868 redirect_uri_on_provider_dashboard = redirect_uri_on_provider_dashboard ,
69- tenant_id = tenant_id ,
7069 api_options = api_options ,
7170 user_context = user_context ,
7271 )
Original file line number Diff line number Diff line change @@ -44,13 +44,11 @@ async def authorisation_url_get(
4444 self ,
4545 provider : Provider ,
4646 redirect_uri_on_provider_dashboard : str ,
47- tenant_id : str ,
4847 api_options : APIOptions ,
4948 user_context : Dict [str , Any ],
5049 ) -> Union [AuthorisationUrlGetOkResult , GeneralErrorResponse ]:
5150 authorisation_url_info = await provider .get_authorisation_redirect_url (
5251 redirect_uri_on_provider_dashboard = redirect_uri_on_provider_dashboard ,
53- tenant_id = tenant_id ,
5452 user_context = user_context ,
5553 )
5654
Original file line number Diff line number Diff line change @@ -207,7 +207,6 @@ async def authorisation_url_get(
207207 self ,
208208 provider : Provider ,
209209 redirect_uri_on_provider_dashboard : str ,
210- tenant_id : str ,
211210 api_options : APIOptions ,
212211 user_context : Dict [str , Any ],
213212 ) -> Union [AuthorisationUrlGetOkResult , GeneralErrorResponse ]:
Original file line number Diff line number Diff line change @@ -55,12 +55,10 @@ async def get_config_for_client_type( # pylint: disable=no-self-use
5555 async def get_authorisation_redirect_url ( # pylint: disable=no-self-use
5656 self ,
5757 redirect_uri_on_provider_dashboard : str ,
58- tenant_id : str ,
5958 user_context : Dict [str , Any ],
6059 ) -> AuthorisationRedirect :
6160 _ = redirect_uri_on_provider_dashboard
62- __ = tenant_id
63- ___ = user_context
61+ __ = user_context
6462 raise NotImplementedError ()
6563
6664 async def exchange_auth_code_for_oauth_tokens ( # pylint: disable=no-self-use
Original file line number Diff line number Diff line change @@ -230,7 +230,6 @@ async def get_config_for_client_type(
230230 async def get_authorisation_redirect_url (
231231 self ,
232232 redirect_uri_on_provider_dashboard : str ,
233- tenant_id : str ,
234233 user_context : Dict [str , Any ],
235234 ) -> AuthorisationRedirect :
236235 query_params : Dict [str , str ] = {
Original file line number Diff line number Diff line change @@ -227,14 +227,12 @@ async def authorisation_url_get(
227227 self ,
228228 provider : Provider ,
229229 redirect_uri_on_provider_dashboard : str ,
230- tenant_id : str ,
231230 api_options : ThirdPartyApiOptions ,
232231 user_context : Dict [str , Any ],
233232 ) -> Union [AuthorisationUrlGetOkResult , GeneralErrorResponse ]:
234233 return await self .tp_authorisation_url_get (
235234 provider ,
236235 redirect_uri_on_provider_dashboard ,
237- tenant_id ,
238236 api_options ,
239237 user_context ,
240238 )
Original file line number Diff line number Diff line change 88from supertokens_python .recipe .thirdparty .provider import Provider , RedirectUriInfo
99from supertokens_python .recipe .thirdparty .types import RawUserInfoFromProvider
1010from supertokens_python .types import APIResponse , GeneralErrorResponse
11- from supertokens_python .recipe .thirdparty import provider as TPProvider
1211
1312from .types import User
1413
5453 ThirdPartyInterfaces .SignInUpPostNoEmailGivenByProviderResponse
5554)
5655
57- ThirdpartyProviderInput = TPProvider .ProviderInput
58- ThirdpartyProviderConfig = TPProvider .ProviderConfig
59- ThirdpartyProviderClientConfig = TPProvider .ProviderClientConfig
60- ThirdpartyProviderConfigForClientType = TPProvider .ProviderConfigForClientType
61-
6256
6357class ThirdPartySignInUpOkResult :
6458 def __init__ (
@@ -285,7 +279,6 @@ async def authorisation_url_get(
285279 self ,
286280 provider : Provider ,
287281 redirect_uri_on_provider_dashboard : str ,
288- tenant_id : str ,
289282 api_options : ThirdPartyAPIOptions ,
290283 user_context : Dict [str , Any ],
291284 ) -> Union [AuthorisationUrlGetOkResult , GeneralErrorResponse ]:
Original file line number Diff line number Diff line change @@ -90,14 +90,12 @@ async def authorisation_url_get(
9090 self ,
9191 provider : Provider ,
9292 redirect_uri_on_provider_dashboard : str ,
93- tenant_id : str ,
9493 api_options : ThirdPartyAPIOptions ,
9594 user_context : Dict [str , Any ],
9695 ) -> Union [AuthorisationUrlGetOkResult , GeneralErrorResponse ]:
9796 return await self .tp_authorisation_url_get (
9897 provider ,
9998 redirect_uri_on_provider_dashboard ,
100- tenant_id ,
10199 api_options ,
102100 user_context ,
103101 )
Original file line number Diff line number Diff line change 66from supertokens_python .recipe .thirdparty .provider import Provider , RedirectUriInfo
77from supertokens_python .recipe .thirdparty .types import RawUserInfoFromProvider
88from supertokens_python .types import APIResponse , GeneralErrorResponse
9- from supertokens_python .recipe .thirdparty import provider as TPProvider
109
1110from ..passwordless import interfaces as PlessInterfaces
1211from .types import User
6766 ThirdPartyInterfaces .SignInUpPostNoEmailGivenByProviderResponse
6867)
6968
70- ThirdpartyProviderInput = TPProvider .ProviderInput
71- ThirdpartyProviderConfig = TPProvider .ProviderConfig
72- ThirdpartyProviderClientConfig = TPProvider .ProviderClientConfig
73- ThirdpartyProviderConfigForClientType = TPProvider .ProviderConfigForClientType
74-
7569
7670class ConsumeCodeOkResult :
7771 def __init__ (self , created_new_user : bool , user : User ):
@@ -332,7 +326,6 @@ async def authorisation_url_get(
332326 self ,
333327 provider : Provider ,
334328 redirect_uri_on_provider_dashboard : str ,
335- tenant_id : str ,
336329 api_options : ThirdPartyAPIOptions ,
337330 user_context : Dict [str , Any ],
338331 ) -> Union [AuthorisationUrlGetOkResult , GeneralErrorResponse ]:
You can’t perform that action at this time.
0 commit comments