Skip to content

Commit 564c327

Browse files
kishore7snehilnzetzl
authored andcommitted
fix:Change the federated connection function name (auth0#674)
### Changes - Modified the function name from `federated_access_token` to `access_token_for_connection`. ### Testing - [x] This change adds test coverage - [x] This change has been tested on the latest version of the platform/language or why not ### Contributor Checklist - [x] I agree to adhere to the [Auth0 General Contribution Guidelines](https://github.com/auth0/open-source-template/blob/master/GENERAL-CONTRIBUTING.md). - [x] I agree to uphold the [Auth0 Code of Conduct](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md).
1 parent 351c18d commit 564c327

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

auth0/authentication/get_token.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def backchannel_login(
278278
},
279279
)
280280

281-
def federated_connection_access_token(
281+
def access_token_for_connection(
282282
self,
283283
subject_token_type: str,
284284
subject_token: str,

auth0/test/authentication/test_get_token.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,10 +337,10 @@ def test_backchannel_login(self, mock_post):
337337
)
338338

339339
@mock.patch("auth0.rest.RestClient.post")
340-
def test_federated_login(self, mock_post):
340+
def test_connection_login(self, mock_post):
341341
g = GetToken("my.domain.com", "cid", client_secret="csec")
342342

343-
g.federated_connection_access_token(
343+
g.access_token_for_connection(
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",

0 commit comments

Comments
 (0)