diff --git a/src/auth/FormElement.ts b/src/auth/FormElement.ts index c253e12f736d..1f39d65621a3 100644 --- a/src/auth/FormElement.ts +++ b/src/auth/FormElement.ts @@ -51,6 +51,7 @@ export default class GmfAuthForm extends GmfBaseElement { @state() private twoFactorAuth = false; @state() private allowPasswordChange = false; @state() private allowPasswordReset = false; + @state() private oidcUserInformationUrl = ''; @state() private changingPassword = false; @state() private userMustChangeItsPassword = false; @state() private openIdConnectUrl = ''; @@ -122,6 +123,7 @@ export default class GmfAuthForm extends GmfBaseElement { this.twoFactorAuth = configuration.gmfTwoFactorAuth; this.allowPasswordChange = configuration.gmfAuthenticationConfig.allowPasswordChange; this.allowPasswordReset = configuration.gmfAuthenticationConfig.allowPasswordReset; + this.oidcUserInformationUrl = configuration.gmfAuthenticationConfig.oidcUserInformationUrl; this.openIdConnectBaseUrl = configuration.gmfOidcLoginUrl; if (configuration.gmfCustomCSS && configuration.gmfCustomCSS.authentication !== undefined) { this.customCSS_ = configuration.gmfCustomCSS.authentication; @@ -181,6 +183,17 @@ export default class GmfAuthForm extends GmfBaseElement { ${this.gmfUser.username}. + ${this.oidcUserInformationUrl + ? html` +
+ ` + : html``} ${!this.changingPassword ? html`