Skip to content
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

Planning Issues: Cross Domain Session Management for MK & SWB #5652

Closed
12 tasks done
SidharthBansal opened this issue May 2, 2019 · 116 comments
Closed
12 tasks done

Planning Issues: Cross Domain Session Management for MK & SWB #5652

SidharthBansal opened this issue May 2, 2019 · 116 comments
Assignees
Labels
planning Planning issues!

Comments

@SidharthBansal
Copy link
Member

SidharthBansal commented May 2, 2019

Sequence of workflow:

These three prs are dependent. They can't be made independent.

  • Step 5: Deploy the changes for MK, SWB and Plots2 on the production SIMULTANEOUSLY.
  • Step 5.5 2. copy recaptcha key to production environment file
  • Step 6: Check the functionality at the production level.
@SidharthBansal

This comment has been minimized.

@SidharthBansal

This comment has been minimized.

@SidharthBansal

This comment has been minimized.

@grvsachdeva grvsachdeva added the planning Planning issues! label May 4, 2019
@jywarren

This comment has been minimized.

@jywarren

This comment has been minimized.

@jywarren

This comment has been minimized.

@jywarren

This comment has been minimized.

@SidharthBansal

This comment has been minimized.

@SidharthBansal

This comment has been minimized.

@SidharthBansal

This comment has been minimized.

@SidharthBansal

This comment has been minimized.

@jywarren

This comment has been minimized.

@jywarren

This comment has been minimized.

@SidharthBansal

This comment has been minimized.

@SidharthBansal

This comment has been minimized.

@jywarren

This comment has been minimized.

@jywarren

This comment has been minimized.

@SidharthBansal

This comment has been minimized.

@SidharthBansal

This comment has been minimized.

@SidharthBansal

This comment has been minimized.

@jywarren
Copy link
Member

jywarren commented May 8, 2019

Great. Finally getting time to do this fully.

This is really nice:

image

However, the URL shows: http://localhost:3000/dashboard (which is still plots2). If I manually get the session openid_return_to from the logs, that URL works. But it's not getting inserted properly into the alert. Aha! Here's the bug:

<div class="alert alert-warning"><button type="button" class="close" data-dismiss="alert">×</button><i class="fa fa-exclamation-mark"></i> <i class='icon icon-exclamation-sign'></i> If you registered in order to use <b>SpectralWorkbench.org</b> or <b>MapKnitter.org</b>, <a href=''/openid?openid.claimed_id=http%3A%2F%2Flocalhost%3A3000%2Fopenid%2Fx&openid.identity=http%3A%2F%2Flocalhost%3A3000%2Fopenid%2Fx&openid.mode=checkid_setup&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.ns.sreg=http%3A%2F%2Fopenid.net%2Fextensions%2Fsreg%2F1.1&openid.realm=http%3A%2F%2Flocalhost%3A3001&openid.return_to=http%3A%2F%2Flocalhost%3A3001%2Fsession%2Fnew%3Fauthenticity_token%3DbMExy9JeRlOIILydAQBlu1%252Fq7Tu9gNtFlgrP979tTQc%253D%26back_to%3D%252F%26return_to%3D%252F&openid.sreg.required=nickname%2Cemail%2Cfullname''>click here to continue &raquo;</a></div>
 ```

@jywarren

This comment has been minimized.

@jywarren

This comment has been minimized.

@SidharthBansal

This comment has been minimized.

@jywarren

This comment has been minimized.

@jywarren

This comment has been minimized.

@jywarren

This comment has been minimized.

@jywarren

This comment has been minimized.

@jywarren

This comment has been minimized.

@SidharthBansal SidharthBansal added this to the Login/SignUp & OAuth milestone Jan 12, 2020
@SidharthBansal

This comment has been minimized.

@VladimirMikulic

This comment has been minimized.

@Uzay-G

This comment has been minimized.

@SidharthBansal

This comment has been minimized.

@SidharthBansal

This comment has been minimized.

@SidharthBansal

This comment has been minimized.

@Uzay-G

This comment has been minimized.

@SidharthBansal

This comment has been minimized.

@Uzay-G

This comment has been minimized.

@SidharthBansal

This comment has been minimized.

@SidharthBansal
Copy link
Member Author

SidharthBansal commented Jan 16, 2020

No infinite looping of twitter right now. However, there will be some looping at twitter.

@SidharthBansal
Copy link
Member Author

Noticeable problems:

  1. User SIGNS IN at MK OR SWB should result in dashboard at Public Lab. Flash notices are missing
  2. Session url missing should not come
  3. Redirects to MK page instead of pl.org page
  4. Twitter looping for some time(not infinite looping)
  5. Recaptcha hash
  6. User is redirecting to MK after signing in to SWB or vice versa

@Uzay-G
Copy link
Member

Uzay-G commented Jan 16, 2020

Noticeable problems:

1. User SIGNS IN at MK OR SWB should result in dashboard at Public Lab. Flash notices are missing

2. Session url missing should not come

3. Redirects to MK page instead of pl.org page

4. Twitter looping for some time(not infinite looping)

5. Recaptcha hash

6. User is redirecting to MK after signing in to SWB or vice versa

Are these problems people have noticed recently that we need to fix or should we check if they still exist?

@SidharthBansal
Copy link
Member Author

SidharthBansal commented Jan 17, 2020 via email

@SidharthBansal
Copy link
Member Author

@VladimirMikulic you can help @Uzay-G here too. I know it is rails stuff and may be complicated for you to handle. But I think we can do it together 😊

@VladimirMikulic
Copy link
Contributor

Thank you for inviting me to the party. I'll be glad to assist you :)

@SidharthBansal
Copy link
Member Author

SidharthBansal commented Jan 20, 2020 via email

@Uzay-G
Copy link
Member

Uzay-G commented Jan 20, 2020

Noticeable problems:

1. User SIGNS IN at MK OR SWB should result in dashboard at Public Lab. Flash notices are missing

2. Session url missing should not come

3. Redirects to MK page instead of pl.org page

4. Twitter looping for some time(not infinite looping)

5. Recaptcha hash

6. User is redirecting to MK after signing in to SWB or vice versa

When you helped me setup the oauth system locally, I saw that 1 and 6 were not a problem. When I logged in or signed up through MK or SWB the redirection was working correctly. What is the problem with no 3?

@SidharthBansal
Copy link
Member Author

SidharthBansal commented Jan 20, 2020 via email

@Uzay-G
Copy link
Member

Uzay-G commented Jan 21, 2020

Alright 👍. Number 2 is an error when logging in through MK or SWB?

@SidharthBansal
Copy link
Member Author

SidharthBansal commented Jan 22, 2020 via email

@Uzay-G
Copy link
Member

Uzay-G commented Jan 22, 2020

Oh wait. I actually have noticed a problem. I could not find the session error but currently, logging in through MK or SWB with oauth redirects to dashboard. Normal login does not.

I am going to setup the multi-oauth system again locally to see if I have the same problem 👍

@SidharthBansal
Copy link
Member Author

SidharthBansal commented Jan 22, 2020 via email

@Uzay-G
Copy link
Member

Uzay-G commented Jan 22, 2020 via email

@SidharthBansal
Copy link
Member Author

SidharthBansal commented Jan 22, 2020 via email

@SidharthBansal
Copy link
Member Author

SWB working perfectly fine now. No redirecting back to publiclab.org 🎉

@SidharthBansal
Copy link
Member Author

mapknitter working perfectly fine now 🚀

@Uzay-G
Copy link
Member

Uzay-G commented Jan 24, 2020

🚀 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
planning Planning issues!
Projects
None yet
Development

No branches or pull requests

5 participants