Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Seamless automatic multi-site authorization

Notifications You must be signed in to change notification settings

teamteamdev/samsa

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

samsa — [team Team] Single Sign On

Seamless automatic multi-site authorization for all internal [team Team] resources.

Nginx example setup: nginx/nginx.conf. Outline:

  • /.sso/authorize everywhere should be proxied to the app with internal; proxy_pass_request_body off;
  • We need a domain where user profile will be stored (main_domain). It should be proxied to the app.
  • On all domains, auth_request /.sso/authorize should be added, error_page 401 should be set to redirect to /.sso/login?next=$request_uri and /.sso should be proxied to the app

Settings example (.env file):

DATABASE_URL=postgresql+asyncpg://nora:nora@localhost:16432/nora
DEBUG=True
MAIN_DOMAIN=localhost:8001
ALLOWED_DOMAINS=["demo.localhost:8001", "localhost:8001"]

About

Seamless automatic multi-site authorization

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.