Skip to content

Commit e4c1a28

Browse files
Removing some attributes
1 parent 717e736 commit e4c1a28

File tree

2 files changed

+5
-18
lines changed

2 files changed

+5
-18
lines changed

auth0/authentication/get_token.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,6 @@ def federated_connection_access_token(
283283
subject_token_type: str,
284284
subject_token: str,
285285
requested_token_type: str,
286-
login_hint: str | None = None,
287-
scope: str | None = None,
288286
connection: str | None = None,
289287
grant_type: str = "urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token"
290288
) -> Any:
@@ -297,13 +295,7 @@ def federated_connection_access_token(
297295
298296
requested_token_type (str): String containing the type of rquested token.
299297
300-
connection (str, optional): Denotes the name of a social identity provider configured to your application
301-
302-
login_hint (str, optional): String containing information about the user to contact for authentication.
303-
304-
scope(str, optional): String value of the different scopes the client is asking for.
305-
Multiple scopes are separated with whitespace.
306-
298+
connection (str, optional): Denotes the name of a social identity provider configured to your application
307299
308300
Returns:
309301
access_token, scope, issued_token_type, token_type
@@ -317,8 +309,6 @@ def federated_connection_access_token(
317309
"subject_token_type": subject_token_type,
318310
"subject_token": subject_token,
319311
"requested_token_type": requested_token_type,
320-
"login_hint": login_hint,
321-
"connection": connection,
322-
"scope": scope,
312+
"connection": connection,
323313
},
324314
)

auth0/test/authentication/test_get_token.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -340,13 +340,12 @@ def test_backchannel_login(self, mock_post):
340340
def test_federated_login(self, mock_post):
341341
g = GetToken("my.domain.com", "cid", client_secret="csec")
342342

343-
g.federated_login(
343+
g.federated_connection_access_token(
344344
grant_type="urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token",
345345
subject_token_type="urn:ietf:params:oauth:token-type:refresh_token",
346346
subject_token="refid",
347347
requested_token_type="http://auth0.com/oauth/token-type/federated-connection-access-token",
348-
connection="google-oauth2",
349-
login_hint="idp_user_id"
348+
connection="google-oauth2"
350349
)
351350

352351
args, kwargs = mock_post.call_args
@@ -363,8 +362,6 @@ def test_federated_login(self, mock_post):
363362
"subject_token_type": "urn:ietf:params:oauth:token-type:refresh_token",
364363
"subject_token": "refid",
365364
"requested_token_type": "http://auth0.com/oauth/token-type/federated-connection-access-token",
366-
"connection": "google-oauth2",
367-
"login_hint": "idp_user_id",
368-
"scope": None,
365+
"connection": "google-oauth2"
369366
},
370367
)

0 commit comments

Comments
 (0)