@if(Model.IsConfirmed)
{
@(Model.ConfirmationStatus == ConfirmationStatus.CONFIRMED ? BCConsentsResource.consent_confirmed : BCConsentsResource.consent_rejected)
}
else
{
@using (Html.BeginForm("Index", "BackChannelConsents", FormMethod.Post))
{
@Html.AntiForgeryToken()
@if (!ViewData.ModelState.IsValid)
{
@foreach (var modelState in ViewData.ModelState.Values)
{
foreach (var error in modelState.Errors)
{
- @BCConsentsResource.ResourceManager.GetString(error.ErrorMessage)
}
}
}
@string.Format(BCConsentsResource.consent_client_access, Model.ClientName)
@if (!string.IsNullOrWhiteSpace(Model.BindingMessage))
{
- @BCConsentsResource.message : @Model.BindingMessage
}
@if(Model.Scopes == null || !Model.Scopes.Any())
{
- @BCConsentsResource.scopes : @string.Join(",", Model.Scopes)
}
@if(Model.AuthorizationDetails != null && Model.AuthorizationDetails.Any())
{
foreach(var authDetail in Model.AuthorizationDetails)
{
- @authDetail.Type : @string.Join(",", authDetail.Actions)
}
}
}
}