Skip to content
Discussion options

You must be logged in to vote

The mismatch is in the machine field of the authinfo entry. Your log shows Forge/Ghub looking for gitlab.mydomain.com/api/v4, while your entry only has gitlab.mydomain.com.

Keep the forge-alist entry and Git username setting as shown, but use:

machine gitlab.mydomain.com/api/v4 login ylan^forge password YOUR_TOKEN

Then run M-x auth-source-forget-all-cached and retry the Forge operation. Keep the actual token local.

The shortened mydomain.com lookup is a fallback: Ghub first checks the full API host, then derives a parent domain using ghub--host-domain. It is not stripping gitlab. from your Git configuration variable. You can satisfy the first lookup directly with the API-host entry above.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Ylaaan
Comment options

Answer selected by Ylaaan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants