Skip to content

SSO via OIDC? #22

Closed
Closed

Description

@osresearch

Is single sign on support on the roadmap? Being able to create users and manage permissions via OIDC is very useful not only for enterprise applications, but also for smaller communities. On the https://v.st domain we have mastodon, matrix, gitea, nextcloud, hedgedoc, etc all centrally managed via keycloak so that onboarding a new member only requires adding their account in a single place.

Activity

  1. will2hew commented on Jul 1, 2024

    @will2hew
    Contributor

    @Philipinho would you accept PRs to add this functionality

  2. Philipinho commented on Jul 1, 2024

    @Philipinho
    Member

    @will2hew thank you for your interest.

    I am holding off a bit because I want to figure out and decide on the technical design.
    Can you brief me a bit on what you have in mind? Such as the database design and technical overview.

  3. archef2000 commented on Jul 1, 2024

    @archef2000

    Would also like to help.

  4. will2hew commented on Jul 1, 2024

    @will2hew
    Contributor

    @Philipinho not to worry! I have done some exploratory work in a fork.

    My suggested changes:

    1. The initial scope would include a per-workspace OIDC configuration (only one per tenant), which would also include a list of domains that will have accounts JIT created upon login. It will also add a configuration option for enforcing OIDC.
    2. This configuration will live in a seperate column to the existing settings column, as we don't want it getting selected by default and including the client secret to the frontend.
    3. I am also proposing some slight simplifications to token management, I don't believe we're actually using the refresh token at all so I'd just suggest that we use a server-side HTTP-only cookie to hold the JWT.
    4. We'd use the passport-openidconnect strategy. I haven't fully scoped this out, but I think we'd use a passport-custom strategy as a wrapper to then create a new OIDC strategy at runtime - to support per-tenant OIDC configuration.

    Let me know what you think!

  5. will2hew commented on Jul 2, 2024

    @will2hew
  6. Philipinho commented on Jul 2, 2024

    @Philipinho
  7. archef2000 commented on Jul 3, 2024

    @archef2000
  8. will2hew commented on Jul 4, 2024

    @will2hew
  9. Philipinho commented on Jul 4, 2024

    @Philipinho
  10. Philipinho commented on Jul 5, 2024

    @Philipinho
    Member

    @will2hew, after giving it a thought, I think I will keep this on hold.

    I do not want to commit to features too quickly just yet, allowing me ample time to decide and settle on the long-term project viability and choices.

    In the meantime, in no particular order, I would want to put more focus on Imports, Exports, Individual page sharing, Diagrams, translations, Mentions, Notifications, Internal link tracking (backlinks), and polishing the UI of existing features.

  11. francoisauclair911 commented on Jul 12, 2024

    @francoisauclair911

    I also like the idea of supporting OIDC protocol. Integrating with openID would make it compatible with any identify provider supporting this (azure, auth0/okta)

  12. matbgn commented on Jul 12, 2024

    @matbgn

    👍 And also other open source solutions like Authentik, Keycloak and others

  13. will2hew commented on Jul 12, 2024

    @will2hew
    Contributor

    I have created an implementation of OIDC on my fork here

    https://github.com/will2hew/docmost

    That you are welcome to use until we are able to upstream it

  14. matbgn commented on Jul 12, 2024

    @matbgn

    @will2hew Do you plan to maintain upstream compatibility in a reasonable manner? For example every 6 months or so?

  15. will2hew commented on Jul 12, 2024

    @will2hew
    Contributor

    That's very much the aim @matbgn

  16. 50 remaining items

  17. pedroponte commented on Feb 28, 2025

    @pedroponte
  18. archef2000 commented on Feb 28, 2025

    @archef2000
  19. Philipinho commented on Feb 28, 2025

    @Philipinho
    Member

    Lots of people are subscribed to this issue. Please kindly keep the conversation on-topic.

  20. ados8 commented on Mar 11, 2025

    @ados8

    security is not a feature that should be paywalled atleast consider adding header authentication

    There's a direct competitor that's open source and has a very extensive SSO already, granted it lacks Workspaces and has other possible drawbacks however its at least a fundamental feature.

    id assume that's the one with line in it's name?

    Thank you, somehow this went under my radar.
    I left app with book in the name for Docmost but really need OpenID/OIDC so checked out app with line in the name 😅.
    Ironically it takes the reverse approach, it forces you to use SSO, I've now migrated over 🍻.

  21. WirtsLegs commented on Mar 13, 2025

    @WirtsLegs

    yeah I generally have no issue with devs monetizing their work and having paywalled features (a commercial version)

    However as someone that works in the security space, pay-walling any security features just feels like bad practice. If you are going to have a open source and/or free offering it should, in my opinion get all the security features.

  22. maaku commented on Mar 14, 2025

    @maaku

    Suggestion: if SSO is going to be paywalled (regrettable from a security standpoint, but understandable), then perhaps most of what the casual users want here could be supported by (1) requiring email before account activation, and (2) limiting signup to specific domains. That way I could allow account creation & automated password resets to everyone with an "user@mydomain" email address, even though it is not truly SSO, while not opening up my server to the random public.

    Enterprise users that can afford to pay a per-user fee will still want proper SSO support because that lets them deauthorize users across all services at once, as well as providing better centralized security.

    (This is the path Mattermost has chosen, btw.)

  23. matbgn commented on Mar 16, 2025

    @matbgn
  24. christophwolff commented on Apr 1, 2025

    @christophwolff

    I would love to use docs most for alot of NGOs in germany but this restriction wont let me. Why is this a paid feature? Why not make it a one time payment with a licence?

  25. MalfuncEddie commented on Apr 3, 2025

    @MalfuncEddie

    It's a shame that this feature is an "enterprise" feature. The only paid feature should be "We will host/backup/support it for you so you don't have the be worried about it".
    We were looking at this for migrating from confluence to something else. An open source model would allow demoing it to mgmt and gain traction on the ground. This is quite hard it the first hurdle to login is another account.

    In most case the business case "have an IT engineer to support it or have it as a service" it most likely will land on the service.

    @will2hew is you fork still maintained?

  26. zgzhang commented on Apr 16, 2025

    @zgzhang

    @will2hew Are there plans to merge upstream changes?

  27. zgzhang commented on Apr 18, 2025

    @zgzhang

    @will2hew Are there plans to merge upstream changes?

    Since it's uncertain when @will2hew will complete the synchronization of upstream changes, I've merged part of upstream changes(v0.5.0) based on @will2hew work. If anyone needs to use it, they can directly use docker image :
    docker pull zgzhang90/docmost-oidc

    BTW, I've only performed basic validation.

  28. will2hew commented on Apr 18, 2025

    @will2hew
    Contributor

    @zgzhang apologies I've been quite busy lately, if you're willing to make a PR into my fork then I'm happy to merge and add it to my existing docker registry people are already using

  29. Philipinho commented on Apr 18, 2025

    @Philipinho
    Member

    SSO was introduced in Docmost v0.9 as part of our Enterprise edition, with support for both SAML 2.0 and OIDC.

    Please contact [email protected] to purchase a valid Enterprise license if your organization requires this feature.

    If you are looking for community efforts, you may want to checkout:

    Closing as this is now resolved.

  30. locked as resolved and limited conversation to collaborators on Apr 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions