Skip to content

riking/discourse-auth-proxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discourse Auth Proxy

This package allows you to use Discourse as an SSO endpoint for an arbitrary site.

Discourse SSO is invoked prior to serving the proxied site. This allows you to reuse Discourse Auth in a site that ships with no auth.

Usage:

Usage of ./discourse-auth-proxy:
  -origin-url="": origin to proxy eg: http://somesecrethost:2001
  -proxy-url="": uri to listen on eg: http://localhost:2000
  -sso-secret="": SSO secret for origin
  -sso-url="": SSO endpoint eg: http://yourdiscourse.com

At the moment only "admin" users on the sso endpoint will be allowed through.

Note: you may use ENV vars as well to pass configuration EG:

ORIGIN_URL=http://somesite.com PROXY_URL=http://listen.com SSO_SECRET="somesecret" SSO_URL="http://somediscourse.com" ./discourse-auth-proxy

Docker Image

You may run using docker using

docker run samsaffron/discourse-auth-proxy

Running will display configuration instructions

About

An http proxy that uses Discourse sso to authenticate users

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 78.8%
  • Shell 10.6%
  • Ruby 10.6%