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(oidc): grace period for continuity container on oidc callbacks #3915

Merged
merged 3 commits into from
May 17, 2024

Conversation

aeneasr
Copy link
Member

@aeneasr aeneasr commented May 7, 2024

Related issue(s)

Checklist

  • I have read the contributing guidelines.
  • I have referenced an issue containing the design document if my change
    introduces a new feature.
  • I am following the
    contributing code guidelines.
  • I have read the security policy.
  • I confirm that this pull request does not address a security
    vulnerability. If this pull request addresses a security vulnerability, I
    confirm that I got the approval (please contact
    security@ory.sh) from the maintainers to push
    the changes.
  • I have added tests that prove my fix is effective or that my feature
    works.
  • I have added or changed the documentation.

Further Comments

hperl
hperl previously approved these changes May 7, 2024
Copy link
Contributor

@hperl hperl left a comment

Choose a reason for hiding this comment

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

LGTM!

if _, err := s.d.ContinuityManager().Continue(r.Context(), w, r, sessionName, continuity.WithPayload(&cntnr)); err != nil {
if _, err := s.d.ContinuityManager().Continue(r.Context(), w, r, sessionName,
continuity.WithPayload(&cntnr),
continuity.WithExpireInsteadOfDelete(time.Minute),
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we sure 1 minute is enough?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it should be enough, at least for the discussed use case

@aeneasr
Copy link
Member Author

aeneasr commented May 17, 2024

This was merged as part of another PR

@aeneasr aeneasr closed this May 17, 2024
@aeneasr aeneasr reopened this May 17, 2024
@aeneasr
Copy link
Member Author

aeneasr commented May 17, 2024

Or was it?

@aeneasr aeneasr marked this pull request as ready for review May 17, 2024 09:00
@aeneasr aeneasr requested a review from zepatrik as a code owner May 17, 2024 09:00
@aeneasr
Copy link
Member Author

aeneasr commented May 17, 2024

It was not.

Copy link

codecov bot commented May 17, 2024

Codecov Report

Attention: Patch coverage is 66.07143% with 19 lines in your changes are missing coverage. Please review.

Project coverage is 78.08%. Comparing base (5288bc7) to head (926ed2a).
Report is 1 commits behind head on master.

Files Patch % Lines
continuity/manager_cookie.go 40.00% 5 Missing and 4 partials ⚠️
x/cookie.go 0.00% 6 Missing ⚠️
persistence/sql/persister_continuity.go 75.00% 1 Missing and 2 partials ⚠️
selfservice/strategy/oidc/strategy.go 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3915      +/-   ##
==========================================
+ Coverage   78.02%   78.08%   +0.05%     
==========================================
  Files         362      362              
  Lines       25296    25341      +45     
==========================================
+ Hits        19737    19787      +50     
+ Misses       4047     4038       -9     
- Partials     1512     1516       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@aeneasr aeneasr merged commit 1a9a096 into master May 17, 2024
27 of 29 checks passed
@aeneasr aeneasr deleted the fix-continuity branch May 17, 2024 12:36
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.

None yet

2 participants