mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 06:13:38 +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": {
|
"ssoIdentifier": {
|
||||||
"message": "SSO identifier"
|
"message": "SSO identifier"
|
||||||
},
|
},
|
||||||
"ssoIdentifierHintPartOne": {
|
"ssoIdentifierHint": {
|
||||||
"message": "Provide this ID to your members to login with SSO. To bypass this step, set up ",
|
"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 links. The full sentence will read 'Provide this ID to your members to login with SSO. To bypass this step, set up Domain verification'"
|
"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": {
|
"unlinkSso": {
|
||||||
"message": "Unlink SSO"
|
"message": "Unlink SSO"
|
||||||
|
|||||||
@@ -30,8 +30,8 @@
|
|||||||
<bit-label>{{ "ssoIdentifier" | i18n }}</bit-label>
|
<bit-label>{{ "ssoIdentifier" | i18n }}</bit-label>
|
||||||
<input bitInput type="text" formControlName="ssoIdentifier" />
|
<input bitInput type="text" formControlName="ssoIdentifier" />
|
||||||
<bit-hint>
|
<bit-hint>
|
||||||
{{ "ssoIdentifierHintPartOne" | i18n }}
|
{{ "ssoIdentifierHint" | i18n }}
|
||||||
<a bitLink routerLink="../domain-verification">{{ "claimedDomains" | i18n }}</a>
|
<a bitLink routerLink="../domain-verification">{{ "claimedDomainsLearnMore" | i18n }}</a>
|
||||||
</bit-hint>
|
</bit-hint>
|
||||||
</bit-form-field>
|
</bit-form-field>
|
||||||
|
|
||||||
@@ -209,7 +209,14 @@
|
|||||||
|
|
||||||
<bit-form-field>
|
<bit-form-field>
|
||||||
<bit-label>{{ "clientSecret" | i18n }}</bit-label>
|
<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>
|
||||||
|
|
||||||
<bit-form-field>
|
<bit-form-field>
|
||||||
@@ -488,7 +495,6 @@
|
|||||||
formControlName="idpSingleSignOnServiceUrl"
|
formControlName="idpSingleSignOnServiceUrl"
|
||||||
appInputStripSpaces
|
appInputStripSpaces
|
||||||
/>
|
/>
|
||||||
<bit-hint>{{ "idpSingleSignOnServiceUrlRequired" | i18n }}</bit-hint>
|
|
||||||
</bit-form-field>
|
</bit-form-field>
|
||||||
|
|
||||||
<bit-form-field>
|
<bit-form-field>
|
||||||
|
|||||||
@@ -121,6 +121,8 @@ export class SsoComponent implements OnInit, OnDestroy {
|
|||||||
spMetadataUrl: string;
|
spMetadataUrl: string;
|
||||||
spAcsUrl: string;
|
spAcsUrl: string;
|
||||||
|
|
||||||
|
showClientSecret = false;
|
||||||
|
|
||||||
protected openIdForm = this.formBuilder.group<ControlsOf<SsoConfigView["openId"]>>(
|
protected openIdForm = this.formBuilder.group<ControlsOf<SsoConfigView["openId"]>>(
|
||||||
{
|
{
|
||||||
authority: new FormControl("", Validators.required),
|
authority: new FormControl("", Validators.required),
|
||||||
@@ -156,7 +158,7 @@ export class SsoComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
idpEntityId: new FormControl("", Validators.required),
|
idpEntityId: new FormControl("", Validators.required),
|
||||||
idpBindingType: new FormControl(Saml2BindingType.HttpRedirect),
|
idpBindingType: new FormControl(Saml2BindingType.HttpRedirect),
|
||||||
idpSingleSignOnServiceUrl: new FormControl(),
|
idpSingleSignOnServiceUrl: new FormControl("", Validators.required),
|
||||||
idpSingleLogoutServiceUrl: new FormControl(),
|
idpSingleLogoutServiceUrl: new FormControl(),
|
||||||
idpX509PublicCert: new FormControl("", Validators.required),
|
idpX509PublicCert: new FormControl("", Validators.required),
|
||||||
idpOutboundSigningAlgorithm: new FormControl(defaultSigningAlgorithm),
|
idpOutboundSigningAlgorithm: new FormControl(defaultSigningAlgorithm),
|
||||||
|
|||||||
Reference in New Issue
Block a user