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

[full-ci] Implement backchannel logout #6007

Merged
merged 18 commits into from
Apr 20, 2023

Conversation

dragonchaser
Copy link
Contributor

@dragonchaser dragonchaser commented Apr 4, 2023

This PR adds an endpoint for the backchannel logout /backchannel_logout.
It can be triggered via a POST request with a special crafted logout token see: https://openid.net/specs/openid-connect-backchannel-1_0.html section 2.4 for the structure.

NOTE: we have added a special http-handler wrapper to the proxy to intercept predefined routes in the proxy before they are passed on to the services! https://github.com/dragonchaser/ocis/blob/backchannellogout/services/proxy/pkg/command/server.go#L200. In future this should be used for terminating stuff like oidc-well-knowns to avoid implementation as middlewares.

refs #3521

@update-docs
Copy link

update-docs bot commented Apr 4, 2023

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@ownclouders
Copy link
Contributor

ownclouders commented Apr 4, 2023

@dragonchaser dragonchaser force-pushed the backchannellogout branch 2 times, most recently from 2ad9053 to f4e8353 Compare April 11, 2023 13:49
@butonic butonic requested a review from kulmann as a code owner April 12, 2023 15:04
@dragonchaser dragonchaser force-pushed the backchannellogout branch 7 times, most recently from ab95306 to 052e836 Compare April 18, 2023 07:17
@dragonchaser dragonchaser changed the title [WIP] -- DO NOT MERGE -- refactor proxy for backchannel logout [full-ci] Implement backchannel logout Apr 18, 2023
Copy link
Collaborator

@kobergj kobergj left a comment

Choose a reason for hiding this comment

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

Found some smaller ones 😉

ocis-pkg/oidc/client.go Outdated Show resolved Hide resolved
ocis-pkg/oidc/client.go Outdated Show resolved Hide resolved
ocis-pkg/oidc/client.go Outdated Show resolved Hide resolved
ocis-pkg/oidc/client.go Show resolved Hide resolved
ocis-pkg/oidc/client.go Show resolved Hide resolved
ocis-pkg/oidc/options.go Outdated Show resolved Hide resolved
services/proxy/pkg/command/server.go Outdated Show resolved Hide resolved
services/proxy/pkg/command/server.go Show resolved Hide resolved
services/proxy/pkg/config/config.go Outdated Show resolved Hide resolved
services/proxy/pkg/middleware/oidc_auth.go Outdated Show resolved Hide resolved
services/proxy/pkg/command/server.go Outdated Show resolved Hide resolved
dragonchaser and others added 10 commits April 19, 2023 17:32
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Christian Richter <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
butonic and others added 4 commits April 19, 2023 17:32
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Christian Richter <[email protected]>
Signed-off-by: Christian Richter <[email protected]>
Signed-off-by: Christian Richter <[email protected]>
Signed-off-by: Christian Richter <[email protected]>
dragonchaser and others added 2 commits April 20, 2023 10:19
Co-authored-by: Julian Koberg <[email protected]>
Signed-off-by: Christian Richter <[email protected]>
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 8 Code Smells

27.4% 27.4% Coverage
0.0% 0.0% Duplication

@dragonchaser dragonchaser merged commit ed59d25 into owncloud:master Apr 20, 2023
ownclouders pushed a commit that referenced this pull request Apr 20, 2023
[full-ci] Implement backchannel logout
@dragonchaser dragonchaser deleted the backchannellogout branch February 6, 2024 14:53
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.

6 participants