menu

Outline

Open source wiki and knowledge base for growing teams.

Channels
Team

Weirdness with Slack SSO

March 13, 2019 at 11:42pm

Weirdness with Slack SSO

March 13, 2019 at 11:42pm

I'm trying test this locally self hosted, as I eventually want to get this up and hosted onto AWS (I'll be willing to help you improve your documentation to make this easier for other people too once I've got it figured out)

There are no instructions/debugging around the slack SSO. I've created a slack developer application, and it linking through to my workspace correctly and the permissions window displays correctly.

I'm using ngrok as slack suggests, as it won't redirect back to an insecure URL (The error handling need to be better on this btw, as it just borks out atm), however it always redirects back to the homepage with:

"Authentication failed - we were unable to sign you in at this time. Please try again."

I've tried walking through the network stack in the browser and I can't see anything from slack that would suggest that the authentication has failed for any reason.


March 13, 2019 at 11:50pm

Yea, the server side logging needs to be improved here – try logging out error to find out what's going on:

https://github.com/outline/outline/blob/master/server/auth/slack.js#L33

  • reply
  • like

March 14, 2019 at 11:42am

@tom I've tried adding some debug around this, it turns out ngrok doesn't like cookies, so its nuking them out.

  • reply
  • like