mirror of
https://github.com/bitwarden/server.git
synced 2025-04-04 20:50:21 -05:00
Added SP ACS URL to Config Screen (#920)
This commit is contained in:
parent
6574d083fe
commit
a997440e3d
@ -24,6 +24,7 @@ namespace Bit.Portal.Models
|
||||
MetadataAddress = configurationData.MetadataAddress;
|
||||
GetClaimsFromUserInfoEndpoint = configurationData.GetClaimsFromUserInfoEndpoint;
|
||||
SpEntityId = configurationData.BuildSaml2ModulePath(globalSettings.BaseServiceUri.Sso);
|
||||
SpAcsUrl = configurationData.BuildSaml2AcsUrl(globalSettings.BaseServiceUri.Sso);
|
||||
IdpEntityId = configurationData.IdpEntityId;
|
||||
IdpBindingType = configurationData.IdpBindingType;
|
||||
IdpSingleSignOnServiceUrl = configurationData.IdpSingleSignOnServiceUrl;
|
||||
@ -64,6 +65,8 @@ namespace Bit.Portal.Models
|
||||
// SAML2 SP
|
||||
[Display(Name = "SpEntityId")]
|
||||
public string SpEntityId { get; set; }
|
||||
[Display(Name = "SpAcsUrl")]
|
||||
public string SpAcsUrl { get; set; }
|
||||
[Display(Name = "NameIdFormat")]
|
||||
public Saml2NameIdFormat SpNameIdFormat { get; set; }
|
||||
[Display(Name = "OutboundSigningAlgorithm")]
|
||||
|
@ -113,6 +113,12 @@
|
||||
<input asp-for="Data.SpEntityId" class="form-control" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-6 form-group">
|
||||
<label asp-for="Data.SpAcsUrl">@i18nService.T("SpAcsUrl")</label>
|
||||
<input asp-for="Data.SpAcsUrl" class="form-control" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-6 form-group">
|
||||
<label asp-for="Data.SpNameIdFormat">@i18nService.T("NameIdFormat")</label>
|
||||
|
@ -53,6 +53,11 @@ namespace Bit.Core.Models.Data
|
||||
return BuildSsoUrl(_saml2ModulePath, ssoUri);
|
||||
}
|
||||
|
||||
public string BuildSaml2AcsUrl(string ssoUri = null)
|
||||
{
|
||||
return string.Concat(BuildSaml2ModulePath(ssoUri), "/Acs");
|
||||
}
|
||||
|
||||
private string BuildSsoUrl(string relativePath, string ssoUri)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(ssoUri) ||
|
||||
|
@ -265,6 +265,9 @@
|
||||
<data name="SpEntityId" xml:space="preserve">
|
||||
<value>SP Entity ID</value>
|
||||
</data>
|
||||
<data name="SpAcsUrl" xml:space="preserve">
|
||||
<value>Assertion Consumer Service (ACS) URL</value>
|
||||
</data>
|
||||
<data name="SpValidateCertificates" xml:space="preserve">
|
||||
<value>Validate Certificates</value>
|
||||
</data>
|
||||
|
Loading…
x
Reference in New Issue
Block a user