File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ def __init__(self, domain: str):
1818 self ._domain = domain
1919
2020 @property
21- def audience_identifier (self ):
21+ def audience (self ):
2222 return f"https://{ self ._domain } /me/"
2323
2424 async def connect_account (
@@ -29,7 +29,7 @@ async def connect_account(
2929 try :
3030 async with httpx .AsyncClient () as client :
3131 response = await client .post (
32- url = f"{ self .audience_identifier } v1/connected-accounts/connect" ,
32+ url = f"{ self .audience } v1/connected-accounts/connect" ,
3333 json = request .model_dump (exclude_none = True ),
3434 auth = BearerAuth (access_token )
3535 )
@@ -65,7 +65,7 @@ async def complete_connect_account(
6565 try :
6666 async with httpx .AsyncClient () as client :
6767 response = await client .post (
68- url = f"{ self .audience_identifier } v1/connected-accounts/complete" ,
68+ url = f"{ self .audience } v1/connected-accounts/complete" ,
6969 json = request .model_dump (exclude_none = True ),
7070 auth = BearerAuth (access_token )
7171 )
Original file line number Diff line number Diff line change @@ -1327,7 +1327,7 @@ async def start_connect_account(
13271327 )
13281328
13291329 access_token = await self .get_access_token (
1330- audience = self ._my_account_client .audience_identifier ,
1330+ audience = self ._my_account_client .audience ,
13311331 scope = "create:me:connected_accounts" ,
13321332 store_options = store_options
13331333 )
@@ -1396,7 +1396,7 @@ async def complete_connect_account(
13961396 raise MissingTransactionError ()
13971397
13981398 access_token = await self .get_access_token (
1399- audience = self ._my_account_client .audience_identifier ,
1399+ audience = self ._my_account_client .audience ,
14001400 scope = "create:me:connected_accounts" ,
14011401 store_options = store_options
14021402 )
Original file line number Diff line number Diff line change @@ -1364,7 +1364,7 @@ async def test_start_connect_account_with_scope(mocker):
13641364 mock_my_account_client .connect_account .assert_awaited ()
13651365 request = mock_my_account_client .connect_account .mock_calls [0 ].kwargs ["request" ]
13661366 assert request .scope == "scope1 scope2 scope3"
1367-
1367+
13681368@pytest .mark .asyncio
13691369async def test_start_connect_account_default_redirect_uri (mocker ):
13701370 # Setup
You can’t perform that action at this time.
0 commit comments