-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Logging in through MK AND SWB should not redirect to Publiclab #7121
Comments
I've thought of this issue too. It's annoying when you get redirected every time when you log in via Google/Github... |
Yeah I totally agree. |
Oh huh... let's cc @SidharthBansal because he created this system. I wonder
does this happen only for Google/GitHub or for Twitter/FB too?
…On Mon, Jan 6, 2020 at 3:17 PM Uzay-G ***@***.***> wrote:
Yeah I totally agree.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#7121?email_source=notifications&email_token=AAAF6J6TGTY5RMCMAHBIO6LQ4OGVRA5CNFSM4KDHU3TKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIGUZTQ#issuecomment-571296974>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAF6J5HF3W7HE6A4AVT2OTQ4OGVRANCNFSM4KDHU3TA>
.
|
Hi @Uzay-G I was referring to the same thing yesterday in your pr. We need a test to ensure correct behavior for MK and SWB(no redirect back to PL). Can you please add tests demonstrating it also? |
@jywarren there were some changes in May-July in plots2 due to which all 4 providers are redirecting back to MK and SWB. We are trying to rectify this on |
@Uzay-G and I am solving it. I hope we will finish this milestone this week.
On Tue, Jan 7, 2020 at 2:51 AM Jeffrey Warren <notifications@github.com>
wrote:
… Oh huh... let's cc @SidharthBansal because he created this system. I wonder
does this happen only for Google/GitHub or for Twitter/FB too?
On Mon, Jan 6, 2020 at 3:17 PM Uzay-G ***@***.***> wrote:
> Yeah I totally agree.
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <
#7121?email_source=notifications&email_token=AAAF6J6TGTY5RMCMAHBIO6LQ4OGVRA5CNFSM4KDHU3TKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIGUZTQ#issuecomment-571296974
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AAAF6J5HF3W7HE6A4AVT2OTQ4OGVRANCNFSM4KDHU3TA
>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7121?email_source=notifications&email_token=AFAAEQ5NPAN2K4EBPZSBQR3Q4OOGJA5CNFSM4KDHU3TKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIG2M7Q#issuecomment-571319934>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFAAEQYIKAQQFRB7WAQXG63Q4OOGJANCNFSM4KDHU3TA>
.
|
Thank you very much!!!
On Tue, Jan 7, 2020 at 12:29 PM Sidharth Bansal <notifications@github.com>
wrote:
… @Uzay-G and I am solving it. I hope we will finish this milestone this
week.
On Tue, Jan 7, 2020 at 2:51 AM Jeffrey Warren ***@***.***>
wrote:
> Oh huh... let's cc @SidharthBansal because he created this system. I
wonder
> does this happen only for Google/GitHub or for Twitter/FB too?
>
> On Mon, Jan 6, 2020 at 3:17 PM Uzay-G ***@***.***> wrote:
>
> > Yeah I totally agree.
> >
> > —
> > You are receiving this because you are subscribed to this thread.
> > Reply to this email directly, view it on GitHub
> > <
>
#7121?email_source=notifications&email_token=AAAF6J6TGTY5RMCMAHBIO6LQ4OGVRA5CNFSM4KDHU3TKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIGUZTQ#issuecomment-571296974
> >,
> > or unsubscribe
> > <
>
https://github.com/notifications/unsubscribe-auth/AAAF6J5HF3W7HE6A4AVT2OTQ4OGVRANCNFSM4KDHU3TA
> >
> > .
> >
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <
#7121?email_source=notifications&email_token=AFAAEQ5NPAN2K4EBPZSBQR3Q4OOGJA5CNFSM4KDHU3TKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIG2M7Q#issuecomment-571319934
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AFAAEQYIKAQQFRB7WAQXG63Q4OOGJANCNFSM4KDHU3TA
>
> .
>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7121?email_source=notifications&email_token=AAAF6J53XIAZORZMUEPEEUTQ4S3W3A5CNFSM4KDHU3TKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIJUNFY#issuecomment-571688599>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAF6JZBAQCPYRB2HW6UFVDQ4S3W3ANCNFSM4KDHU3TA>
.
|
I think this will be solved after #3367 |
@Uzay-G please provide tests for MK and SWB |
If this issue still requires changes then please provide changes too |
@SidharthBansal could you help me with this? I don't think it's possible to test logging in through Publiclab from MK or SWB |
Let's focus on completing login milestone asap. So, that we can start working on other projects like comments, stats too together |
You can take as much time as you want. Don't need to take tension. |
Hey! I checked out the file and I was wondering what type of tests you wanted me to add. Do you want me to add tests for trying to log in with banned users and things like that? |
User at Mk in not logged in state.
User clicks Github Provider.
Github is logged in
Pl is logged in
MK is logged in
User is logged into MK
User is on mk.org
Similarly for all provider, similarly for both signup and login and for
both swb and mk.
Does this make sense?
…On Mon, Jan 13, 2020 at 11:33 PM Uzay-G ***@***.***> wrote:
Hey! I checked out the file and I was wondering what type of tests you
wanted me to add. Do you want me to add tests for trying to log in with
banned users and things like that?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7121?email_source=notifications&email_token=AFAAEQ5H7ZDAEQHKHB3VPT3Q5SUGZA5CNFSM4KDHU3TKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIZV7GA#issuecomment-573792152>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFAAEQ5W2SGJPHF32HNX5SDQ5SUGZANCNFSM4KDHU3TA>
.
|
Yeah it does. I am looking at the example you sent and will try and code some tests 👍 |
There will be many tests.
Please ensure no duplicate tests
…On Mon, Jan 13, 2020 at 11:53 PM Uzay-G ***@***.***> wrote:
Yeah it does. I am looking at the example you sent and will try and code
some tests 👍
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7121?email_source=notifications&email_token=AFAAEQ3PVUPYP7RZCPEFR5TQ5SWTRA5CNFSM4KDHU3TKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIZYHQY#issuecomment-573801411>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFAAEQYTLU7ELQ6JUL3ZWOLQ5SWTRANCNFSM4KDHU3TA>
.
|
Hey! Don't some of these tests: https://github.com/publiclab/plots2/blob/d06f59460edf0424a6edbfc4000ac8444145fc5d/test/integration/openid_test.rb already do authentication requests from MK or SWB? |
yes we already have some tests. we need to write remaining tests if any
…On Tue, Jan 14, 2020 at 3:38 AM Uzay-G ***@***.***> wrote:
Hey! Don't some of these tests:
https://github.com/publiclab/plots2/blob/d06f59460edf0424a6edbfc4000ac8444145fc5d/test/integration/openid_test.rb
already do authentication requests from MK or SWB?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7121?email_source=notifications&email_token=AFAAEQZI7TY4YZKGNJKQO4DQ5TQ65A5CNFSM4KDHU3TKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEI2PIYY#issuecomment-573895779>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFAAEQ442KCMFJIDVJHWN23Q5TQ65ANCNFSM4KDHU3TA>
.
|
All of the tests in the file are only for SWB, should I replicate them for MK? |
There should be tests for mk too
…On Wed, 15 Jan 2020, 2:59 pm Uzay-G, ***@***.***> wrote:
All of the tests in the file are only for SWB, should I replicate them for
MK?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7121?email_source=notifications&email_token=AFAAEQ6X5X5I42WNF5J46ATQ53JPBA5CNFSM4KDHU3TKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEI7USFQ#issuecomment-574572822>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFAAEQ2GYS5KFNVCOH6XAM3Q53JPBANCNFSM4KDHU3TA>
.
|
The tests are quite confusing... I have done the missing tests for MK based on what already existed for SWB but I am not sure what I can add and how I can test through the open_id. What other tests should I add to the files? |
Let's first merge a pr so that equal number of tests are present for mk and
swb. Then we can think forward.
…On Wed, 15 Jan 2020, 6:15 pm Uzay-G, ***@***.***> wrote:
The tests are quite confusing... I have done the missing tests for MK
based on what already existed for SWB but I am not sure what I can add and
how I can test through the open_id. What other tests should I add to the
files?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7121?email_source=notifications&email_token=AFAAEQ2IC3KFBMK7XHFWU2TQ54AO3A5CNFSM4KDHU3TKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJAF6WA#issuecomment-574644056>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFAAEQ54VTSPENZMQGQWBMDQ54AO3ANCNFSM4KDHU3TA>
.
|
Alright I will open the pull request 👍 |
Now we can continue with other tests |
What type of tests would you like me to add? |
Login to mk by logging into GitHub at public lab. Redirected back to mk.
…On Wed, 15 Jan 2020, 10:49 pm Uzay-G, ***@***.***> wrote:
What type of tests would you like me to add?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7121?email_source=notifications&email_token=AFAAEQ3DSJB6RXPOU5DJBG3Q55AQNA5CNFSM4KDHU3TKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJBC7RI#issuecomment-574762949>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFAAEQ5GOTKQJGKRMTSBCGTQ55AQNANCNFSM4KDHU3TA>
.
|
Doesn't this one solve that: plots2/test/integration/openid_test.rb Lines 338 to 391 in 299a6f4
Maybe I am wrong. What do you think? |
Please abandon the current task. I think we can go to the system tests now |
Sorry I can't give points for this as it was already solved |
Yeah no problem 👍 |
The authentication system for Mapknitter, Publiclab and Spectral Workbench are quite intertwined and I noticed that logging it to Mapknitter through oauth (at least Github) redirected to the publiclab dashboard instead of back to Mapknitter. Here's a video with the problem:
Is there a way we could implement a redirect to the website we are currently on instead and do you find this useful? I would love to help! 👍
The text was updated successfully, but these errors were encountered: