Add generic Oauth2 login option? #1141

Closed
opened 2026-02-04 23:58:41 +03:00 by OVERLORD · 9 comments
Owner

Originally created by @poVoq on GitHub (Apr 12, 2019).

Describe the feature you'd like
Is there any guidance on how to add a custom OIDC / Oauth2 provider though?
There are plenty already supported, see: https://www.bookstackapp.com/docs/admin/third-party-auth/

But I would like to add my own Nextcloud instance as the user backend since that is now possible, see for example:
https://www.claudiuscoenen.de/2018/10/oauth2-with-nextcloud-provider-and-gitlab-client/

Describe the benefits this feature would bring to BookStack users

Use to login of your own website if you set up a OIDC / Oauth2 service for which there are many options.

Additional context
See also:
https://github.com/BookStackApp/BookStack/issues/1338

Originally created by @poVoq on GitHub (Apr 12, 2019). **Describe the feature you'd like** Is there any guidance on how to add a custom OIDC / Oauth2 provider though? There are plenty already supported, see: https://www.bookstackapp.com/docs/admin/third-party-auth/ But I would like to add my own Nextcloud instance as the user backend since that is now possible, see for example: https://www.claudiuscoenen.de/2018/10/oauth2-with-nextcloud-provider-and-gitlab-client/ **Describe the benefits this feature would bring to BookStack users** Use to login of your own website if you set up a OIDC / Oauth2 service for which there are many options. **Additional context** See also: https://github.com/BookStackApp/BookStack/issues/1338
OVERLORD added the 🚪 Authentication🏭 Back-End labels 2026-02-04 23:58:41 +03:00
Author
Owner

@ghost commented on GitHub (Apr 20, 2019):

+1, would like to use Keycloak as OIDC authentication backend.

@ghost commented on GitHub (Apr 20, 2019): +1, would like to use Keycloak as OIDC authentication backend.
Author
Owner

@durnerj commented on GitHub (Apr 29, 2019):

+1

@durnerj commented on GitHub (Apr 29, 2019): +1
Author
Owner

@ghost commented on GitHub (Jun 23, 2019):

Any updates? @ssddanbrown

@ghost commented on GitHub (Jun 23, 2019): Any updates? @ssddanbrown
Author
Owner

@ssddanbrown commented on GitHub (Jun 23, 2019):

@acvigue No update right now. This is something I'd like to do, since I don't really want to expand the BookStack third-party login list much further, but I've been focusing my time on other bits recently as I found auth systems were using up a lot of my time.

Shouldn't be too hard, just a case of understanding potential variability in services.

@ssddanbrown commented on GitHub (Jun 23, 2019): @acvigue No update right now. This is something I'd like to do, since I don't really want to expand the BookStack third-party login list much further, but I've been focusing my time on other bits recently as I found auth systems were using up a lot of my time. Shouldn't be too hard, just a case of understanding potential variability in services.
Author
Owner

@thutex commented on GitHub (Nov 11, 2019):

@ssddanbrown another +1 here for a way to match up authentication with nextcloud.
i would be happy with either oauth or imap/smtp authentication.

@thutex commented on GitHub (Nov 11, 2019): @ssddanbrown another +1 here for a way to match up authentication with nextcloud. i would be happy with either oauth or imap/smtp authentication.
Author
Owner

@Agnael commented on GitHub (Apr 15, 2020):

+1 would love to integrate my personal bookstack with my personal IdentityServer (OAuth2+OIDC)

@Agnael commented on GitHub (Apr 15, 2020): +1 would love to integrate my personal bookstack with my personal IdentityServer (OAuth2+OIDC)
Author
Owner

@ghost commented on GitHub (Apr 27, 2020):

another +1 : log in with nextcloud credentials would be very handy for many small companies I think :)

@ghost commented on GitHub (Apr 27, 2020): another +1 : log in with nextcloud credentials would be very handy for many small companies I think :)
Author
Owner

@dmigis commented on GitHub (Apr 30, 2020):

+1 for Nextcloud

@dmigis commented on GitHub (Apr 30, 2020): +1 for Nextcloud
Author
Owner

@ssddanbrown commented on GitHub (Oct 16, 2021):

OIDC support has now been merged into master dev branch, via PRs #2169 and #2960, to be part of the next feature release.
This will provide an initial core implementation that also supports a base level of auto-discovery. Further features, where deemed required, can be requested separately. Therefore I will close off this issue.

Thanks @poVoq for your original request and thanks everyone else for providing input.

@ssddanbrown commented on GitHub (Oct 16, 2021): OIDC support has now been merged into master dev branch, via PRs #2169 and #2960, to be part of the next feature release. This will provide an initial core implementation that also supports a base level of auto-discovery. Further features, where deemed required, can be requested separately. Therefore I will close off this issue. Thanks @poVoq for your original request and thanks everyone else for providing input.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1141