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

Store offline sessions only if they were requested by the user #3125

Merged
merged 2 commits into from
Oct 20, 2023

Conversation

MM53
Copy link
Contributor

@MM53 MM53 commented Sep 26, 2023

Overview

Create offline sessions only if they are supported by the connector and if the user requests it with the scope offline_access.
Extend handler tests to verify this behavior.

What this PR does / why we need it

This PR resolves the bug described in #3124

Special notes for your reviewer

Does this PR introduce a user-facing change?

Store offline sessions only if they are supported and were requested by the user

Signed-off-by: MM53 <28218664+MM53@users.noreply.github.com>
… during login

Signed-off-by: MM53 <28218664+MM53@users.noreply.github.com>
@MM53 MM53 force-pushed the fix-offline-sessions branch from b4da7cc to aefc607 Compare September 26, 2023 14:30
@@ -539,6 +539,17 @@ func (s *Server) finalizeLogin(identity connector.Identity, authReq storage.Auth
return returnURL, false, nil
}

offlineAccessRequested := false
Copy link
Member

Choose a reason for hiding this comment

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

NIT

Suggested change
offlineAccessRequested := false
var offlineAccessRequested bool

@nabokihms nabokihms enabled auto-merge (squash) October 19, 2023 21:34
@nabokihms nabokihms disabled auto-merge October 20, 2023 05:40
@nabokihms nabokihms merged commit efc2fdb into dexidp:master Oct 20, 2023
9 checks passed
mdpradeep pushed a commit to mdpradeep/dex that referenced this pull request Oct 20, 2023
…p#3125)

Signed-off-by: MM53 <2821Signed-off-by: MM53 <28218664+MM53@users.noreply.github.com>
Signed-off-by: Pradeep Mudlapur <pradeep@juliacomputing.com>
jtfrey pushed a commit to jtfrey/dex that referenced this pull request Oct 20, 2023
…p#3125)

Signed-off-by: MM53 <2821Signed-off-by: MM53 <28218664+MM53@users.noreply.github.com>
Signed-off-by: Jeffrey Frey <frey@udel.edu>
mdpradeep added a commit to mdpradeep/dex that referenced this pull request Oct 20, 2023
orange-hbenmabrouk pushed a commit to orange-hbenmabrouk/dex that referenced this pull request Oct 23, 2023
…p#3125)

Signed-off-by: MM53 <2821Signed-off-by: MM53 <28218664+MM53@users.noreply.github.com>
orange-hbenmabrouk pushed a commit to orange-hbenmabrouk/dex that referenced this pull request Oct 23, 2023
…p#3125)

Signed-off-by: MM53 <2821Signed-off-by: MM53 <28218664+MM53@users.noreply.github.com>
Signed-off-by: Houssem Ben Mabrouk <houssem.benmabrouk.ext@orange.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants