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): active user sso information #3432

Open
wants to merge 63 commits into
base: main
Choose a base branch
from
Open

Conversation

cdriesler
Copy link
Member

@cdriesler cdriesler commented Nov 1, 2024

Description & motivation

  • We need to expose active the user's sso session information via gql:
    • To prompt sign in in some places, like the dashboard
    • To pre-empt access issues/do some general improvements to frontend tasks (cc Mike)

Access will still be gated by a backend error when no SSO session is found when there should be one.

Changes:

  • Adds getUserSsoSession and listUserSsoSessions repo functions
  • Exposes as sso property on Workspace type and expiredSsoSessions on User type
  • Refactors authorizeResolver to emit an event on workspace access.
    • This will be where the "please go sign in now" error is thrown, but deferring that to a dedicated PR

gjedlicska and others added 30 commits September 23, 2024 17:44
@cdriesler cdriesler marked this pull request as ready for review November 5, 2024 00:00
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