Error using already used personal token on gitlab #54

Closed
opened 2025-10-31 17:04:44 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @shreyas1599 on GitHub (May 8, 2020).

I didn't realise that you cannot use the same token for the same app on different devices for gitlab. When a wrong token is used, as expected a 404 error is returned. But when you use an already used token the following error occurs. The only way to resolve this is to uninstall and re-install the app. Probably a gitlab bug but we should handle the error better and allow the user to enter a different token.

image

Originally created by @shreyas1599 on GitHub (May 8, 2020). I didn't realise that you cannot use the same token for the same app on different devices for gitlab. When a wrong token is used, as expected a 404 error is returned. But when you use an already used token the following error occurs. The only way to resolve this is to uninstall and re-install the app. Probably a gitlab bug but we should handle the error better and allow the user to enter a different token. ![image](https://user-images.githubusercontent.com/28999492/81400033-d4f9c400-9149-11ea-812e-948521dd6c17.png)
Author
Owner

@pd4d10 commented on GitHub (May 9, 2020):

I could not reproduce it. If an invalid token submitted:

image

@pd4d10 commented on GitHub (May 9, 2020): I could not reproduce it. If an invalid token submitted: ![image](https://user-images.githubusercontent.com/9524411/81464927-8ce5aa80-91f8-11ea-8c6a-147027343433.png)
Author
Owner

@shreyas1599 commented on GitHub (May 9, 2020):

Not an invalid token. Use a token which was already used on another device. Should I share my token here?

@shreyas1599 commented on GitHub (May 9, 2020): Not an invalid token. Use a token which was already used on another device. Should I share my token here?
Author
Owner

@pd4d10 commented on GitHub (May 9, 2020):

I don't think so. That would be insecure.

@pd4d10 commented on GitHub (May 9, 2020): I don't think so. That would be insecure.
Author
Owner

@shreyas1599 commented on GitHub (May 9, 2020):

You could try the token you used on an actual device on a simulator or the other way round?

@shreyas1599 commented on GitHub (May 9, 2020): You could try the token you used on an actual device on a simulator or the other way round?
Author
Owner

@pd4d10 commented on GitHub (May 9, 2020):

I commented on the PR you submitted. We could discuss there

@pd4d10 commented on GitHub (May 9, 2020): I commented on the PR you submitted. We could discuss there
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/git-touch#54