Outline with discord login

Outline now supports using Discord as a login method. I was wondering if I would just pay for the hosted version, but couldn't see anything about it, so I emailed them.

The hosted version doesn't support Discord login.

I had tried making this work with Cloudron, but I think what happens is that configuring it with Cloudron OIDC interferes with other SSO methods. You need to install it without Cloudron integration (which actually makes it so you can't login…), and then enter the env variables to setup Discord.

I had heard of someone else having success with Railway, so I used the Outline template for Railway to launch it. Tips on the template discussion page help me understand and troubleshoot a bit.

You need to manually add the variables for Discord login, which is well-documented in the Outline docs and pretty straight forward - make a Discord app, grab the settings. You'll want to enable Discord developer mode so that you can grab server and role IDs.

First, there was a race condition where the Postgres database wasn't available be. ore the front end. And, it seemed like whatever the template autogenerated meant that it immediately had 76 changes to apply and redeploy.

The Railway comment thread pointed out an issue with the SECRET_KEY, which I thought had been integrated into the template. I tried a few things and then followed the link to the Outline GH issues which tells you to use openssl rand -hex 32. Did that and hardcoded the secret key variable and it all worked!

However, I'm not an admin. So, have to follow this thread, but also connect to the public networking of the Postgres instance on Railway.

What you have now is:

  • an Outline install that uses Discord for login
  • optionally, you can restrict it to a particular server
  • optionally, you can restrict it to a list of roles that are allowed to login

Notes mentioning this note