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

feat(sso): protect access with sso sessions #3441

Merged
merged 64 commits into from
Nov 5, 2024
Merged

Conversation

cdriesler
Copy link
Member

@cdriesler cdriesler commented Nov 5, 2024

Description & motivation

  • We now have SSO and the concept of a "valid SSO session" for a given user and workspace
  • We intend to use this to block access as well. There will be a number of frontend provisions, but this has to be enforced by the backend.

Changes:

  • Listens to WorkspaceEvents.Authorized to, if a given workspace asset is requested:
    • Check if the workspace has SSO enabled
    • Check if the user should have a valid session
    • Check if they have that session
  • If any checks fail, provides a specific error with redirect information to SSO sign in
  • Lots of tests for this

gjedlicska and others added 30 commits September 23, 2024 17:44
@cdriesler cdriesler marked this pull request as ready for review November 5, 2024 14:16
@gjedlicska gjedlicska merged commit d42bf7c into main Nov 5, 2024
23 of 25 checks passed
@gjedlicska gjedlicska deleted the charles/ssoBlockAccess branch November 5, 2024 16: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.

3 participants