Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Invalid link to Personal Access Token generation in auth login #784

Closed
paper42 opened this issue Jul 4, 2021 · 1 comment · Fixed by #785
Closed

Invalid link to Personal Access Token generation in auth login #784

paper42 opened this issue Jul 4, 2021 · 1 comment · Fixed by #785
Labels
bug Something isn't working

Comments

@paper42
Copy link

paper42 commented Jul 4, 2021

Description

$ glab auth login
? What GitLab instance do you want to log into? GitLab.com
- Logging into gitlab.com

Tip: you can generate a Personal Access Token here https://gitlab.com/profile/personal_access_tokens
The minimum required scopes are 'api' and 'write_repository'.
? Paste your authentication token: 

Going to https://gitlab.com/profile/personal_access_tokens results in a 404 page.

Expected Behavior vs Actual Behavior

Possible Fix

A working link is https://gitlab.com/-/profile/personal_access_tokens

Steps to Reproduce

  1. auth login
  2. select gitlab.com
  3. try visiting the link in a browser

Logs

Your Environment

  • Version used (Run glab --version): glab version 1.18.1
  • Operating System and version: Void Linux
@paper42 paper42 added the bug Something isn't working label Jul 4, 2021
@profclems
Copy link
Owner

Hi @paper42, thanks a lot for opening this issue.

I'm not sure when this change occurred but GitLab used to automatically redirect https://gitlab.com/profile/personal_access_tokens to https://gitlab.com/-/profile/personal_access_tokens.

I just tested on self hosted instances like gitlab.gnome.org and salsa.debian.org and it still works so I guess the error occurs only GitLab.com

I will submit a fix asap but it is open in case you or anyone want to submit a quick PR with a fix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants