@Html.UserPicture(User)
@Html.ClientPicture(Model.PictureUri)
@using (Html.BeginForm("Index", "Consents", FormMethod.Post))
{
@Html.AntiForgeryToken()
@if (!ViewData.ModelState.IsValid)
{
@foreach (var modelState in ViewData.ModelState.Values)
{
foreach (var error in modelState.Errors)
{
- @ConsentsResource.ResourceManager.GetString(error.ErrorMessage)
}
}
}
@string.Format(ConsentsResource.consent_client_access, Model.ClientName)
@if(Model.ScopeNames != null && Model.ScopeNames.Any())
{
- @ConsentsResource.scopes : @string.Join(",", Model.ScopeNames)
}
@if(Model.ClaimNames != null && Model.ClaimNames.Any())
{
- @ConsentsResource.claims : @string.Join(",", Model.ClaimNames)
}
@if (Model.AuthorizationDetails != null && Model.AuthorizationDetails.Any())
{
foreach (var authDetail in Model.AuthorizationDetails)
{
if (authDetail.Type == AuthorizationDetailsNames.OpenIdCredential)
{
}
else
{
-
@authDetail.Type : @string.Join(",", authDetail.Actions)
@if (authDetail.Locations != null && authDetail.Locations.Any())
{
@foreach (var location in authDetail.Locations)
{
- @location
}
}
}
}
}
}