Skip to content

Commit a75892a

Browse files
authored
Merge pull request #31 from Authress/return-get-client-token
Return token from get_client_token. fix #30.
2 parents 2eff9fb + fbdf604 commit a75892a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

authress/authress_client.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ def set_token(self, token: str):
3333
self._http_client.set_token(token)
3434

3535
def get_client_token(self) -> str:
36-
self._http_client._get_client_token()
36+
"""Generates a Service Client Machine JWT to be used for securing machine to machine requests."""
37+
return self._http_client._get_client_token()
3738

3839
def verify_token(self, token: str) -> object:
3940
"""Verify a user access token
@@ -57,7 +58,7 @@ def user_permissions(self) -> UserPermissionsApi:
5758

5859
@property
5960
def users(self) -> UsersApi:
60-
"""Gets the User permissions API to make HTTP Requests with."""
61+
"""Gets the Users API to make HTTP Requests with."""
6162
return UsersApi(api_client=self._http_client)
6263

6364
@property
@@ -67,7 +68,7 @@ def access_records(self) -> AccessRecordsApi:
6768

6869
@property
6970
def accounts(self) -> AccountsApi:
70-
"""Gets the Authress Accounts API to make HTTP Requests with."""
71+
"""Gets the Authress Admin API to make HTTP Requests with."""
7172
return AccountsApi(api_client=self._http_client)
7273

7374
@property

0 commit comments

Comments
 (0)