discourse/discourse-auth-proxy

Name: discourse-auth-proxy

Owner: Discourse

Description: An http proxy that uses Discourse sso to authenticate users

Created: 2015-04-15 03:12:12.0

Updated: 2018-03-08 10:24:36.0

Pushed: 2017-11-21 22:06:19.0

Homepage: null

Size: 25

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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:

e of ./discourse-auth-proxy:
isten-url="": uri to listen on eg: localhost:2001. leave blank to set equal to proxy-url
rigin-url="": origin to proxy eg: http://localhost:2002
roxy-url="": outer url of this host eg: http://secrets.example.com
so-secret="": SSO secret for origin
so-url="": SSO endpoint eg: http://discourse.forum.com
llow-all: don't restrict access to "admin" users on the SSO endpoint

-------+    proxy-url   +---------+    listen-url    +----------------------+
 User  |  ============> |  Nginx  |  ==============> | discourse-auth-proxy |
-------+                +---------+                  +----------------------+
  |                                                             |
  | sso-url                                          origin-url |
  |                                                             |
  v                                                             v
----------+                                          +----------------------+
Discourse |                                          | Protected web server |
----------+                                          +----------------------+

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

er run samsaffron/discourse-auth-proxy

Running will display configuration instructions


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.