mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 13:53:34 +00:00
refactor(sso-config-tweaks): [Auth/PM-933] Tweaks to SSO Config Page (#16374)
Makes some tweaks to the SSO config page: - SSO Identifier: update hint text - Single Sign-On Service URL: make required, remove hint text - Client Secret: make hidden by default (add view/hide toggle)
This commit is contained in:
@@ -5219,9 +5219,13 @@
|
||||
"ssoIdentifier": {
|
||||
"message": "SSO identifier"
|
||||
},
|
||||
"ssoIdentifierHintPartOne": {
|
||||
"message": "Provide this ID to your members to login with SSO. To bypass this step, set up ",
|
||||
"description": "This will be used as part of a larger sentence, broken up to include links. The full sentence will read 'Provide this ID to your members to login with SSO. To bypass this step, set up Domain verification'"
|
||||
"ssoIdentifierHint": {
|
||||
"message": "Provide this ID to your members to login with SSO. Members can skip entering this identifier during SSO if a claimed domain is set up. ",
|
||||
"description": "This will be used as part of a larger sentence, broken up to include a link. The full sentence will read 'Provide this ID to your members to login with SSO. Members can skip entering this identifier during SSO if a claimed domain is set up. Learn more'"
|
||||
},
|
||||
"claimedDomainsLearnMore": {
|
||||
"message": "Learn more",
|
||||
"description": "This will be used as part of a larger sentence, broken up to include a link. The full sentence will read 'Provide this ID to your members to login with SSO. Members can skip entering this identifier during SSO if a claimed domain is set up. Learn more'"
|
||||
},
|
||||
"unlinkSso": {
|
||||
"message": "Unlink SSO"
|
||||
|
||||
@@ -30,8 +30,8 @@
|
||||
<bit-label>{{ "ssoIdentifier" | i18n }}</bit-label>
|
||||
<input bitInput type="text" formControlName="ssoIdentifier" />
|
||||
<bit-hint>
|
||||
{{ "ssoIdentifierHintPartOne" | i18n }}
|
||||
<a bitLink routerLink="../domain-verification">{{ "claimedDomains" | i18n }}</a>
|
||||
{{ "ssoIdentifierHint" | i18n }}
|
||||
<a bitLink routerLink="../domain-verification">{{ "claimedDomainsLearnMore" | i18n }}</a>
|
||||
</bit-hint>
|
||||
</bit-form-field>
|
||||
|
||||
@@ -209,7 +209,14 @@
|
||||
|
||||
<bit-form-field>
|
||||
<bit-label>{{ "clientSecret" | i18n }}</bit-label>
|
||||
<input bitInput type="text" formControlName="clientSecret" appInputStripSpaces />
|
||||
<input bitInput type="password" formControlName="clientSecret" appInputStripSpaces />
|
||||
<button
|
||||
type="button"
|
||||
bitIconButton
|
||||
bitSuffix
|
||||
bitPasswordInputToggle
|
||||
[(toggled)]="showClientSecret"
|
||||
></button>
|
||||
</bit-form-field>
|
||||
|
||||
<bit-form-field>
|
||||
@@ -488,7 +495,6 @@
|
||||
formControlName="idpSingleSignOnServiceUrl"
|
||||
appInputStripSpaces
|
||||
/>
|
||||
<bit-hint>{{ "idpSingleSignOnServiceUrlRequired" | i18n }}</bit-hint>
|
||||
</bit-form-field>
|
||||
|
||||
<bit-form-field>
|
||||
|
||||
@@ -121,6 +121,8 @@ export class SsoComponent implements OnInit, OnDestroy {
|
||||
spMetadataUrl: string;
|
||||
spAcsUrl: string;
|
||||
|
||||
showClientSecret = false;
|
||||
|
||||
protected openIdForm = this.formBuilder.group<ControlsOf<SsoConfigView["openId"]>>(
|
||||
{
|
||||
authority: new FormControl("", Validators.required),
|
||||
@@ -156,7 +158,7 @@ export class SsoComponent implements OnInit, OnDestroy {
|
||||
|
||||
idpEntityId: new FormControl("", Validators.required),
|
||||
idpBindingType: new FormControl(Saml2BindingType.HttpRedirect),
|
||||
idpSingleSignOnServiceUrl: new FormControl(),
|
||||
idpSingleSignOnServiceUrl: new FormControl("", Validators.required),
|
||||
idpSingleLogoutServiceUrl: new FormControl(),
|
||||
idpX509PublicCert: new FormControl("", Validators.required),
|
||||
idpOutboundSigningAlgorithm: new FormControl(defaultSigningAlgorithm),
|
||||
|
||||
Reference in New Issue
Block a user