שימוש ב-Discourse Auth Proxy כספק SSO לאתר אחר

סיכום מבוסס בינה מלאכותית

The discussion revolves around using Discourse Auth Proxy as an SSO provider for another site. bstgmr02 is trying to set it up with the following config:

PROXY_URL=http://0.0.0.0:80
ORIGIN_URL=https://mycustomsite.com
SSO_SECRET=RandomStringSecret
SSO_URL=https://my.discourseforum.com
HOST_PORT=7925

However, they encounter an “Authentication failed due to missing secret” error. DaBai_LuoBo is also attempting to use Discourse as an SSO provider for their private deployment of Outline, requiring OIDC configuration.
Editor0732 suggests adjusting PROXY_URL to https://mycustomsite.com/ and LISTEN_URL to 0.0.0.0:80, but still experiences infinite redirects and re-requests for SSO. The users are seeking guidance on implementing Discourse Auth Proxy as an SSO provider.

My idea is simple, I would like to use Discourse as an SSO provider on one of my other websites. I was pointed to using Discourse Auth Proxy by Discourse. I have used the following config below:

#!/bin/sh

# you are going to need to set the following env vars and run
# the image like this

PROXY_URL=http://0.0.0.0:80
ORIGIN_URL=https://mycustomsite.com
SSO_SECRET=RandomStringSecret
SSO_URL=https://my.discourseforum.com
HOST_PORT=7925

docker run -d --restart=always -e ORIGIN_URL=$ORIGIN_URL -e PROXY_URL=$PROXY_URL -e SSO_SECRET=$SSO_SECRET -e SSO_URL=$SSO_URL -p $HOST_PORT:80 discourse/auth-proxy

And inside of my Discourse forum I have enabled:

enable discourse connect provider

And in the discourse connect provider secrets I have entered https://mycustomsite.com with the RandomStringSecret as the secret. However I get this problem:

Authentication failed due to missing secret. Contact the site administrators to fix this problem.

I did try to decode the payload from the query params, and I got the following data back:

{
  return_sso_url: 'http://0.0.0.0:80/',
  nonce: '9431ad68-55b3-49a6-8b9a-a1d7209506e7'
}

Not sure if this is helpful, but I’ve been fighting with it for the past 2 hours. Please do let me know if I am using this for the right thing. I would like to create a basic Discourse SSO Provider
for my site which will provide it with the user data that I can use across my website.

Bump, anyone?

I have the same idea, I am going to use my discourse instance as my SSO provider for my private deployment of outline and it requires the following configuration items:

I am unaware of how to achieve this. I came across Discourse Auth Proxy in another Discourse Connect post, but there was no detailed documentation on its usage. Have you found a solution or could you guide me on how to implement it? I appreciate your assistance.

PROXY_URL should be https://mycustomsite.com/
and LISTEN_URL is 0.0.0.0:80

Although my configuration passes SSO, I cannot access mycustomsite.com.The page is constantly refreshed and re-requested sso.