Skip to content

fix: fix validation for GitLab 14.5 tokens

Eduardo Cardoso requested to merge github/fork/ygarasab/token-validation into trunk

Description

  • update token validation both in token length and prefix (now standard on gitlab)

  • update documentation for token validation

  • update '*' based token alias showed in log for proper length

This solves the current gitlab.com issue with the command

glab auth status

But there are still some warning messages related to some db.org and gl.io domains, but I don't really know what that's about :(

Related Issue

Resolves #926 (closed)

How Has This Been Tested?

Local testing

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation
  • Chore (Related to CI or Packaging to platforms)

Merge request reports