GitLab: adjust links to profile/user-settings (#12205)
parent
aee3bd14db
commit
38cb4bfe71
|
@ -264,7 +264,7 @@ php composer.phar config [--global] --editor --auth
|
||||||
> **Note:** For the gitlab authentication to work on private gitlab instances, the
|
> **Note:** For the gitlab authentication to work on private gitlab instances, the
|
||||||
> [`gitlab-domains`](../06-config.md#gitlab-domains) section should also contain the URL.
|
> [`gitlab-domains`](../06-config.md#gitlab-domains) section should also contain the URL.
|
||||||
|
|
||||||
To create a new access token, go to your [access tokens section on GitLab](https://gitlab.com/-/profile/personal_access_tokens)
|
To create a new access token, go to your [access tokens section on GitLab](https://gitlab.com/-/user_settings/personal_access_tokens)
|
||||||
(or the equivalent URL on your private instance) and create a new token. See also [the GitLab access token documentation](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#creating-a-personal-access-token) for more information.
|
(or the equivalent URL on your private instance) and create a new token. See also [the GitLab access token documentation](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#creating-a-personal-access-token) for more information.
|
||||||
|
|
||||||
When creating a gitlab token manually, make sure it has either the `read_api` or `api` scope.
|
When creating a gitlab token manually, make sure it has either the `read_api` or `api` scope.
|
||||||
|
|
|
@ -126,8 +126,8 @@ class GitLab
|
||||||
}
|
}
|
||||||
|
|
||||||
$localAuthConfig = $this->config->getLocalAuthConfigSource();
|
$localAuthConfig = $this->config->getLocalAuthConfigSource();
|
||||||
$personalAccessTokenLink = $scheme.'://'.$originUrl.'/-/profile/personal_access_tokens';
|
$personalAccessTokenLink = $scheme.'://'.$originUrl.'/-/user_settings/personal_access_tokens';
|
||||||
$revokeLink = $scheme.'://'.$originUrl.'/-/profile/applications';
|
$revokeLink = $scheme.'://'.$originUrl.'/-/user_settings/applications';
|
||||||
$this->io->writeError(sprintf('A token will be created and stored in "%s", your password will never be stored', ($localAuthConfig !== null ? $localAuthConfig->getName() . ' OR ' : '') . $this->config->getAuthConfigSource()->getName()));
|
$this->io->writeError(sprintf('A token will be created and stored in "%s", your password will never be stored', ($localAuthConfig !== null ? $localAuthConfig->getName() . ' OR ' : '') . $this->config->getAuthConfigSource()->getName()));
|
||||||
$this->io->writeError('To revoke access to this token you can visit:');
|
$this->io->writeError('To revoke access to this token you can visit:');
|
||||||
$this->io->writeError($revokeLink);
|
$this->io->writeError($revokeLink);
|
||||||
|
@ -312,7 +312,7 @@ class GitLab
|
||||||
|
|
||||||
$token = $this->httpDownloader->get($scheme.'://'.$originUrl.'/oauth/token', $options)->decodeJson();
|
$token = $this->httpDownloader->get($scheme.'://'.$originUrl.'/oauth/token', $options)->decodeJson();
|
||||||
$this->io->writeError('GitLab token successfully refreshed', true, IOInterface::VERY_VERBOSE);
|
$this->io->writeError('GitLab token successfully refreshed', true, IOInterface::VERY_VERBOSE);
|
||||||
$this->io->writeError('To revoke access to this token you can visit '.$scheme.'://'.$originUrl.'/-/profile/applications', true, IOInterface::VERY_VERBOSE);
|
$this->io->writeError('To revoke access to this token you can visit '.$scheme.'://'.$originUrl.'/-/user_settings/applications', true, IOInterface::VERY_VERBOSE);
|
||||||
|
|
||||||
return $token;
|
return $token;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue