Skip to content

Commit

Permalink
Removing some attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
kishore7snehil committed Feb 10, 2025
1 parent 717e736 commit e4c1a28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 18 deletions.
14 changes: 2 additions & 12 deletions auth0/authentication/get_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,6 @@ def federated_connection_access_token(
subject_token_type: str,
subject_token: str,
requested_token_type: str,
login_hint: str | None = None,
scope: str | None = None,
connection: str | None = None,
grant_type: str = "urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token"
) -> Any:
Expand All @@ -297,13 +295,7 @@ def federated_connection_access_token(
requested_token_type (str): String containing the type of rquested token.
connection (str, optional): Denotes the name of a social identity provider configured to your application
login_hint (str, optional): String containing information about the user to contact for authentication.
scope(str, optional): String value of the different scopes the client is asking for.
Multiple scopes are separated with whitespace.
connection (str, optional): Denotes the name of a social identity provider configured to your application
Returns:
access_token, scope, issued_token_type, token_type
Expand All @@ -317,8 +309,6 @@ def federated_connection_access_token(
"subject_token_type": subject_token_type,
"subject_token": subject_token,
"requested_token_type": requested_token_type,
"login_hint": login_hint,
"connection": connection,
"scope": scope,
"connection": connection,
},
)
9 changes: 3 additions & 6 deletions auth0/test/authentication/test_get_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,13 +340,12 @@ def test_backchannel_login(self, mock_post):
def test_federated_login(self, mock_post):
g = GetToken("my.domain.com", "cid", client_secret="csec")

g.federated_login(
g.federated_connection_access_token(
grant_type="urn:auth0:params:oauth:grant-type:token-exchange:federated-connection-access-token",
subject_token_type="urn:ietf:params:oauth:token-type:refresh_token",
subject_token="refid",
requested_token_type="http://auth0.com/oauth/token-type/federated-connection-access-token",
connection="google-oauth2",
login_hint="idp_user_id"
connection="google-oauth2"
)

args, kwargs = mock_post.call_args
Expand All @@ -363,8 +362,6 @@ def test_federated_login(self, mock_post):
"subject_token_type": "urn:ietf:params:oauth:token-type:refresh_token",
"subject_token": "refid",
"requested_token_type": "http://auth0.com/oauth/token-type/federated-connection-access-token",
"connection": "google-oauth2",
"login_hint": "idp_user_id",
"scope": None,
"connection": "google-oauth2"
},
)

0 comments on commit e4c1a28

Please sign in to comment.