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

@@ -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 merged commit efc2fdb into dexidp:master Oct 20, 2023
10 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 <[email protected]>
Signed-off-by: Pradeep Mudlapur <[email protected]>
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 <[email protected]>
Signed-off-by: Jeffrey Frey <[email protected]>
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
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 <[email protected]>
Signed-off-by: Houssem Ben Mabrouk <[email protected]>
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