aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src
diff options
context:
space:
mode:
authorPhilippe Perrin <philippe.perrin@sonarsource.com>2022-08-26 16:51:20 +0200
committersonartech <sonartech@sonarsource.com>2022-08-29 20:02:52 +0000
commit4d1bd03543c55e564151d55e3a4763b82bc8e512 (patch)
treedae8e3c614837286a622fde1cc2cbb359ca4ff7d /server/sonar-web/src
parentdf8d5def80fa3abcef563310aa93b22d70cf4d37 (diff)
downloadsonarqube-4d1bd03543c55e564151d55e3a4763b82bc8e512.tar.gz
sonarqube-4d1bd03543c55e564151d55e3a4763b82bc8e512.zip
SONAR-17231 Move DevOps platform related authentication information to the newly created authentication section
Diffstat (limited to 'server/sonar-web/src')
-rw-r--r--server/sonar-web/src/main/js/apps/settings/components/authentication/Authentication.tsx13
1 files changed, 6 insertions, 7 deletions
diff --git a/server/sonar-web/src/main/js/apps/settings/components/authentication/Authentication.tsx b/server/sonar-web/src/main/js/apps/settings/components/authentication/Authentication.tsx
index 39fae5f8e15..e6bd3a16618 100644
--- a/server/sonar-web/src/main/js/apps/settings/components/authentication/Authentication.tsx
+++ b/server/sonar-web/src/main/js/apps/settings/components/authentication/Authentication.tsx
@@ -45,12 +45,11 @@ export type AuthenticationTabs =
| AlmKeys.GitLab
| AlmKeys.BitbucketServer;
-const DOCUMENTATION_LINKS = {
- [SAML]: '/documentation/instance-administration/delegated-auth/#saml-authentication',
- [AlmKeys.GitHub]: '/documentation/analysis/github-integration/#authenticating-with-github',
- [AlmKeys.GitLab]: '/documentation/analysis/gitlab-integration/#authenticating-with-gitlab',
- [AlmKeys.BitbucketServer]:
- '/documentation/analysis/bitbucket-cloud-integration/#authenticating-with-bitbucket-cloud'
+const DOCUMENTATION_LINK_SUFFIXES = {
+ [SAML]: 'saml',
+ [AlmKeys.GitHub]: 'github',
+ [AlmKeys.GitLab]: 'gitlab',
+ [AlmKeys.BitbucketServer]: 'bitbucket-cloud'
};
function renderDevOpsIcon(key: string) {
@@ -138,7 +137,7 @@ export default function Authentication(props: Props) {
values={{
link: (
<Link
- to={DOCUMENTATION_LINKS[currentTab]}
+ to={`/documentation/instance-administration/authentication/${DOCUMENTATION_LINK_SUFFIXES[currentTab]}/`}
rel="noopener noreferrer"
target="_blank">
{translate('settings.authentication.help.link')}