raelgc / scudcloud

ScudCloud - Slack for Linux
https://launchpad.net/~rael-gc/+archive/ubuntu/scudcloud
MIT License
1.22k stars 99 forks source link

Any plans to integrate it with corporate SSO? #211

Closed egd-io closed 9 years ago

egd-io commented 9 years ago

My corporate Slack requires SSO and Scudcloud is not compatible. Just wondering if there was plans to incorporate this in the future?

lenrok258 commented 9 years ago

+1 for this question. For the time being it is not possible to log in. Please let me know if you need more details.

raelgc commented 9 years ago

Hi @eth-0 and @lenrok258, sorry for my late response.

What happens when you try the SSO auth? Can you give me a sample URL?

I'm asking because in theory this was fixed in #44

lenrok258 commented 9 years ago

Hi @raelgc,

here is scenario to reproduce the problem:

  1. Launch application
  2. Put 'ocado' as Slack domain
  3. Click on 'Continue' button
  4. 'Sign in with Google' button appears but nothing happens after clicking it. In debug mode I can see that 302 returns from server but it looks like app doesn't follow redirect.

I hope it helps.

raelgc commented 9 years ago

I got this:

lenrok258 commented 9 years ago

Ok, so it seems that a problem is after authorization being complete. Unfortunately I can't give you any test user... so you will not be able to reproduce it.

raelgc commented 9 years ago

Do you know which is the URL fired in 302 that is not followed?

egd-io commented 9 years ago

I was able to find a work around that should probably be opened as another issue because it is a security concern. I logged into the corporate Slack via Scudcloud on a laptop before SSO was enabled. I later tried to sign in on a desktop after SSO was implemented and couldn't. That's when I submitted this issue.

After no response, I decided to try taking the config from the laptop and copy it to the desktop. I did so and I was signed in to all the accounts I was signed into on the laptop. While that was a work around to fix my issue, it is an incredibly insecure one.

raelgc commented 9 years ago

The config file has the browser session, for this reason is saved in your personal config folder, under your home.

raelgc commented 9 years ago

Anyway, @eth-0, waiting for the sample URL that is firing the 302.

In this meanwhile, as probably you cannot wait for a fix (as I imagine you're using for work), you can subscribe for the official Slack client beta for Linux (they've sent me few days ago): https://docs.google.com/forms/d/1uOlDiuT9XMEGijhXicsOasJv3Nxvt5Azvd9OIIS61Sk/viewform

lenrok258 commented 9 years ago

Hi @raelgc,

I've found workaround that works for me. I've disconnected from my company's internal network (where SSO should authenticate me automatically after clicking on (mentioned before) 'Sign in with Google' button) and connected to the Internet somewhere else. After doing it I was able to see the same screen as you and I was able to sign-in.

Nevertheless thanks for your support.

raelgc commented 9 years ago

@lenrok258 I'm glad to hear it worked!

Sounds like some company proxy was redirecting and ScudCloud was not following the redirect.

Thank you for pointing a workaround! This will be valuable for more people reporting this issue!