-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #3794: SSO broken #3795
base: master
Are you sure you want to change the base?
Fixes #3794: SSO broken #3795
Conversation
@sfrunza13 this branch has a whole bunch of stuff in it (commits) not related to your fix. Can you squash/rebase on latest master? |
…ecause this is what I have seen in examples and docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job getting the commits fixed, I know that wasn't fun.
@@ -8,6 +8,7 @@ const routes = require('./routes'); | |||
require('./authentication'); | |||
|
|||
const service = new Satellite({ | |||
cors: { origin: 'https://telescope.cdot.systems', credentials: true }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The trouble we'll have here is that the origin is different depending on how you run the app: dev, staging, production.
We store this value in an environment variable named WEB_URL
. It's different on every deployment. So here you should use process.env.WEB_URL
.
However, we don't seem to expose this to our SSO container, see https://github.com/Seneca-CDOT/telescope/blob/master/docker/docker-compose.yml#L74-L96. You need to add it there.
And in our local dev env file https://github.com/Seneca-CDOT/telescope/blob/master/src/api/sso/env.local, which should mimic what we have in https://github.com/Seneca-CDOT/telescope/blob/master/config/env.development#L31.
There might be other things we need to make this work, but that's a start.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will try this soon, is it ok if this takes a day or two? I am backed up a bit on other school work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, leave this for a while, it's not important in the next week or so.
Issue This PR Addresses
fixes #3794
Type of Change
Description
Steps to test the PR
Checklist