Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update session caching according to core auth changes #509

Merged
merged 3 commits into from
Dec 8, 2023

Conversation

zigaLuksic
Copy link
Collaborator

I was thinking of making this a major release since older versions might no longer cache sessions correctly.

@@ -50,7 +50,7 @@ def test_session(session: SentinelHubSession) -> None:
def test_token_info(session: SentinelHubSession) -> None:
info = session.info()

for key in ["sub", "aud", "jti", "exp", "name", "email", "sid", "org", "did", "aid", "d"]:
for key in ["exp", "iat", "jti", "iss", "sub", "typ", "azp", "scope", "account"]:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we only check for what we need/use, i.e. "azp"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i had the same idea, guess it's a good one then

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Contributor

@mlubej mlubej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't follow the oauth changes discussions, so not sure how much I can contribute, but I don't see anything weird going on

@zigaLuksic zigaLuksic merged commit ccb83c3 into develop Dec 8, 2023
7 checks passed
@zigaLuksic zigaLuksic deleted the update-for-new-auth branch December 8, 2023 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants