Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
5e8d1ab
capture 401 earlier
iLLiCiTiT Jun 8, 2026
9a74717
fix return statement in finally
iLLiCiTiT Jun 8, 2026
c60e8b5
support cert and verify in token validation functions
iLLiCiTiT Jun 8, 2026
557c5b6
fix token validation
iLLiCiTiT Jun 8, 2026
ce3a33f
move private methods below public ones
iLLiCiTiT Jun 8, 2026
b80b51a
handle if user service or not with utils function 'get_user_info_by_t…
iLLiCiTiT Jun 8, 2026
d36a0e9
wrap token information to dataclass and added better handling of it
iLLiCiTiT Jun 8, 2026
bba0f17
few overall fixes
iLLiCiTiT Jun 8, 2026
1b01a9d
mark few functions for deprecation
iLLiCiTiT Jun 8, 2026
a7ad9da
pass timeout
iLLiCiTiT Jun 9, 2026
2cb728d
fix typo
iLLiCiTiT Jun 9, 2026
9eb311e
store the unauthorized response
iLLiCiTiT Jun 9, 2026
2a3ce16
mark ayon api errors with prefix
iLLiCiTiT Jun 9, 2026
09a58ce
reset is_service too
iLLiCiTiT Jun 9, 2026
347293d
change how errors are handled in rest api response
iLLiCiTiT Jun 9, 2026
7358aed
use raw_post when using 'handle_invalid_token'
iLLiCiTiT Jun 9, 2026
78f3842
fix doubled self
iLLiCiTiT Jun 9, 2026
0485ad6
pass timeout to requests request
iLLiCiTiT Jun 9, 2026
7d2c512
fix return type in 'get_user_info_by_token'
iLLiCiTiT Jun 9, 2026
865861a
unset more attributes
iLLiCiTiT Jun 9, 2026
196e7cb
remove unsed import
iLLiCiTiT Jun 9, 2026
a179832
do not add token to headers if is not valid
iLLiCiTiT Jun 9, 2026
79cb242
don't use raw requests for server info
iLLiCiTiT Jun 9, 2026
4c5c108
Merge branch 'develop' into enhancement/invaldated-token-handling
iLLiCiTiT Jun 12, 2026
b4323d3
do not safe-guard token validation
iLLiCiTiT Jun 12, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ayon_api/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ def login(self, username: str, password: str):
login is skipped.

"""
previous_token = self._access_token
previous_token = self._token_info.token
super().login(username, password)
if self.has_valid_token and previous_token != self._access_token:
os.environ[SERVER_API_ENV_KEY] = self._access_token
if self.has_valid_token and previous_token != self._token_info.token:
os.environ[SERVER_API_ENV_KEY] = self._token_info.token

@staticmethod
def get_url():
Expand Down
Loading
Loading