sso.rst 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. Single Sign-On
  2. ==============
  3. SSO in Sentry is handled in one of two ways:
  4. - Via a middleware which handles an upstream proxy dictating the authenticated user
  5. - Via a third party service which implements an authentication pipeline
  6. This documentation describes the latter, which would cover things like Google Apps, GitHub,
  7. LDAP, and other similar services.
  8. Enabling SSO
  9. ------------
  10. As of version 8.0 the SSO feature is enabled by default in Sentry. That said it can be disabled
  11. with a feature switch in your ``sentry.conf.py``::
  12. from sentry.conf.server import *
  13. # turn SSO on our off
  14. SENTRY_FEATURES['organizations:sso'] = False
  15. Additionally you may enable advanced SSO features::
  16. from sentry.conf.server import *
  17. SENTRY_FEATURES['organizations:sso-saml2'] = True
  18. SENTRY_FEATURES['organizations:sso-rippling'] = True
  19. You should see an **Auth** subheading under your organization's dashboard when SSO is enabled.
  20. Installing a Provider
  21. ---------------------
  22. Providers are installed the same way as extensions. Simply install them via the Python package manager (pip)
  23. and restart the Sentry services. Once done you'll see them show up in the auth settings.
  24. The following providers are published and maintained by the Sentry team:
  25. * `Google Apps <https://github.com/getsentry/sentry-auth-google>`_
  26. * `GitHub <https://github.com/getsentry/sentry-auth-github>`_
  27. Custom Providers
  28. ----------------
  29. At this time the API is considered unstable and subject to change. Things likely won't change a lot, but there's
  30. a few areas that need cleaned up.
  31. With that in mind, if you wish to build your own take a look at the base ``Provider`` class as well as one of the
  32. the reference implementations above.