-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
Cannot log in when selecting the GitLab back-end (sporadically) #739
Comments
@chasecaleb Do you have an idea what this is about? The only additional context that I can provide that @branch14 can can continue to use organice.200ok.ch on the Desktop and while he is describing the issue, I can continue to log out and in both on the Desktop and my iPhone, so it's likely not a general outage on the side of GitLab. |
Ugh, sorry about this! So just to make sure I'm on the same page, there's two scenarios where that token call can happen:
It sounds like there's an occur occurring for both scenarios, right? Since @branch14 was using the app happy for a while, then scenario 2 caused an occur, then he logged out and attempted to sign in again but encountered scenario 1. I'm going to do some more digging to figure out why this is going on and I'll get back to you within 12-36 hours, but in the meantime @munen can you post a screenshot of how the OAuth application is configured in GitLab, please? Go to https://gitlab.com/-/profile/applications , then click the edit button (pencil icon) in the "Your applications" section towards the end of the page. For example this is how I have my test application configured: |
Not a problem at all. And even if it were, you've responded within 30 minutes from across the world - that's the most expensive SLA I can think of 🚀 🦸
This is very much how I understood it while he explained it to me. But @branch14 is the person who can confirm definitively. I can confirm that variant 1 (sign in) is occuring now as I've seen him debug it during a screen sharing session. Since he cannot log in anymore (from the smartphone), it'll be hard to debug variant 2. But I'll make sure to ping him off-channel so he can confirm about the issue in variant 2.
Amazing, thanks 🙇 🙏
Sure, I'm happy to help! |
@branch14 if you're able to run this for me via remote dev tools and share the output I would appreciate it: (() => {
const state = JSON.parse(localStorage["oauth2authcodepkce-state"]);
console.log(Object.keys(state));
console.log(Object.keys(state.accessToken));
console.log(state.accessToken?.expiry || 'missing');
console.log(state.hasAuthCodeBeenExchangedForAccessToken);
console.log(Object.keys(state.refreshToken));
console.log(localStorage.authenticatedSyncService);
console.log(window.location.origin);
})(); Text or screenshot is fine, whichever is more convenient for you. |
@chasecaleb Thx for looking into this! |
I can confirm that @munen described the issue I have. Case 2 might have been the initial occurrence of the issue, but I can only reproduce case 1, as I cannot successfully login, atm. |
Update: I talked @branch14 on IRC and we found a workaround:
I think the issue occurred because |
I had the same issue (case 1 I assume) this morning when I opened organice on my phone. Looking forward to testing, once #740 is merged and rolled out. |
Describe the bug
@branch14, the co-founder of 200ok.ch, was super happy to hear about the GitLab back-end in organice, so he wanted to use it right away. At first, he could login using Firefox on the Desktop and could log in on his smartphone (Android).
After some time passed, he got an error on organice on the smartphone, so he tried logging back in. Now, logging in on the smartphone reproducibly doesn't work whereas it did work before - and he's still logged in on the Desktop browser.
To Reproduce
Steps to reproduce the behavior:
0. Use @branch14 Android device (yes, this is where the reproducability already stops unfortunately)
Screenshots
The visible error is generated here: https://github.com/200ok-ch/organice/blob/master/src/actions/sync_backend.js#L69
When inspecting the error by connecting the phone to his Desktop, we see that the issue is not actually 'retrieving the directory', but one step ealier while authenticating against GitLab.
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: