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

fix: post_device page #12

Merged
merged 4 commits into from
Apr 22, 2024
Merged

fix: post_device page #12

merged 4 commits into from
Apr 22, 2024

Conversation

nsklikas
Copy link

@nsklikas nsklikas commented Apr 15, 2024

IAM-735

  • Update the post device page query params.
  • Fix bug were the device session data were over-written

The CI should pass once #10 is merged

TODO:

  • Move the session updating logic to another layer
  • The verify endpoint persists the flow, fetches the device session, updates the device session. We need to add a transaction, but the handler is probably not the right place

@nsklikas nsklikas changed the title Iam 735 fix: post_device page Apr 15, 2024
oauth2/handler.go Show resolved Hide resolved
persistence/sql/persister_oauth2.go Show resolved Hide resolved
Instead of updating the device session, we were over-writing it causing
existing session info that were created from fosite to be lost.
@nsklikas nsklikas merged commit 7b9aeb7 into canonical Apr 22, 2024
23 checks passed
@nsklikas nsklikas deleted the IAM-735 branch April 22, 2024 07:35
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.

4 participants