Skip to content

Commit

Permalink
DISPLAY-993: Changed oidc provider from ad to internal
Browse files Browse the repository at this point in the history
  • Loading branch information
tuj committed Sep 27, 2023
1 parent d6a882f commit 0c5cb6a
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion public/example_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"api": "/",
"touchButtonRegions": false,
"login": {
"ad": true,
"internal": true,
"external": true,
"usernamePassword": true
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/navigation/login-sidebar/login-sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ const LoginSidebar = () => {
<div className="card text-white bg-dark mb-3 border border-color-white">
<div className="card-body">
<p className="card-text" id="ad-explanation">
<Trans>{t("AD-info-text")}</Trans>
<Trans>{t("internal-info-text")}</Trans>
</p>
<p className="card-text" id="mitid-explanation">
<Trans>{t("MitID-info-text")}</Trans>
<Trans>{t("external-info-text")}</Trans>
</p>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions src/components/user/login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -346,17 +346,17 @@ function Login() {
<>
<h1>{t("login-header")}</h1>

{(enabledLogins?.ad || enabledLogins?.external) && (
{(enabledLogins?.internal || enabledLogins?.external) && (
<>
<h2 className="h4 mt-5 mb-3 fw-light">
{t("oidc-mit-id-header")}
</h2>

<div className="d-flex">
{enabledLogins?.ad && (
{enabledLogins?.internal && (
<OIDCLogin
providerKey="ad"
text={t("login-with-ad")}
providerKey="internal"
text={t("login-with-internal")}
icon={
<FontAwesomeIcon
className="me-2"
Expand Down
2 changes: 1 addition & 1 deletion src/config-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const ConfigLoader = {
api: "/api/",
touchButtonRegions: false,
login: {
ad: true,
internal: true,
external: true,
usernamePassword: true,
},
Expand Down
20 changes: 10 additions & 10 deletions src/translations/da/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
}
},
"login-sidebar": {
"AD-info-text": "Er du <strong>medarbejder</strong> skal du benytte AD login.",
"MitID-info-text": "Er du <strong>borger</strong> skal du benytte MitID login."
"internal-info-text": "Er du <strong>medarbejder</strong> skal du benytte medarbejderlogin.",
"external-info-text": "Er du <strong>borger</strong> skal du benytte MitID login."
},
"slides-list": {
"columns": {
Expand Down Expand Up @@ -793,7 +793,7 @@
"select-some-options": "Vælg..."
},
"login": {
"missing-tenants": "Denne bruger er ugyldig, da den ikke har tenants tilknyttet",
"missing-tenants": "Denne bruger er ugyldig, da den ikke har nogen instanser tilknyttet",
"please-wait": "Vent venligst",
"please-authenticate": "Log ind",
"select-some-options": "Vælg...",
Expand All @@ -802,19 +802,19 @@
"error": "Log ind fejlede:",
"invalid-credentials": "Log ind blev ikke genkendt",
"submit": "Log ind",
"error-oidc-login": "Log ind med AD fejlede",
"error-fetching-oidc-urls": "Opsætning af AD login fejlede",
"login-with-mitid-aria-label": "Log ind med mitid",
"error-oidc-login": "Log ind fejlede",
"error-fetching-oidc-urls": "Opsætning af login fejlede",
"login-with-mitid-aria-label": "Log ind med MitID login",
"oidc-mit-id-header": "Adgangsservice",
"os2-display-user-header": "OS2display-bruger",
"login-header": "Log ind",
"login-with-oidc-aria-label": "Log ind med AD",
"login-with-oidc-aria-label": "Log ind som medarbejder",
"login-with-username-password": "Log ind med email og kodeord",
"select-tenant-label": "Vælg lokation",
"tenant-help-text": "Du er tilknyttet flere lokationer, og lokationen kan blive ændret igen når du er logget ind",
"login-with-ad": "AD login",
"tenant-help-text": "Du er tilknyttet flere instanser, og instansen kan blive ændret igen når du er logget ind",
"login-with-internal": "Medarbejderlogin",
"login-with-external": " login",
"logged-in-select-tenant": "Vælg lokation.",
"logged-in-select-tenant": "Vælg instans.",
"activation-code": "Indtast aktiveringskode for at blive koblet på en instans.",
"error-activating-code": "Aktivering fejlede.",
"error-refreshing-code": "Aktivering fejlede. Prøv igen."
Expand Down

0 comments on commit 0c5cb6a

Please sign in to comment.