Skip to content

Commit

Permalink
Merge pull request #31 from Authress/return-get-client-token
Browse files Browse the repository at this point in the history
Return token from get_client_token. fix #30.
  • Loading branch information
wparad authored Aug 26, 2024
2 parents 2eff9fb + fbdf604 commit a75892a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions authress/authress_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def set_token(self, token: str):
self._http_client.set_token(token)

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

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

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

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

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

@property
Expand Down

0 comments on commit a75892a

Please sign in to comment.