File tree Expand file tree Collapse file tree 7 files changed +38
-27
lines changed
Dictionnary/IdentityResources Expand file tree Collapse file tree 7 files changed +38
-27
lines changed Original file line number Diff line number Diff line change 1- using System ;
1+ using IdentityServer4 . Models ;
22using System . Collections . Generic ;
3- using System . Linq ;
4- using System . Threading . Tasks ;
53
64namespace IdentityServer . Areas . HeliosAdminUI . Dictionnary . IdentityResources
75{
86 public static class IdentityResourcesInfo
97 {
108 public static Dictionary < string , string > Data = new Dictionary < string , string >
119 {
12- { "ClientId" , "identity resources dic" }
10+ { nameof ( IdentityResource . Name ) , "The unique name of the resource." } ,
11+ { nameof ( IdentityResource . DisplayName ) , "Display name of the resource." } ,
12+ { nameof ( IdentityResource . UserClaims ) , "List of associated user claims that should be included when this resource is requested." }
13+
1314 } ;
1415 }
1516}
Original file line number Diff line number Diff line change @@ -9,11 +9,17 @@ namespace IdentityServer.Areas.HeliosAdminUI.Models.IdentityResources
99 public class CreateIdentityResourceViewModel
1010 {
1111 [ Required ]
12+ [ Display ( Name = "Name" ) ]
1213 public string Name { get ; set ; }
14+
1315 [ Required ]
16+ [ Display ( Name = "Display name" ) ]
1417 public string DisplayName { get ; set ; }
18+
1519 [ Required ]
1620 public string UserClaimsString { get ; set ; }
21+
22+ [ Display ( Name = "User Claim(s)" ) ]
1723 public List < IdentityResourceClaim > UserClaims
1824 {
1925 get
Original file line number Diff line number Diff line change @@ -10,8 +10,11 @@ public class UpdateIdentityResourceViewModel
1010 public int Id { get ; set ; }
1111
1212 [ Required ]
13+ [ Display ( Name = "Name" ) ]
1314 public string Name { get ; set ; }
15+
1416 [ Required ]
17+ [ Display ( Name = "Display name" ) ]
1518 public string DisplayName { get ; set ; }
1619
1720 private string userClaimsString ;
@@ -22,6 +25,7 @@ public string UserClaimsString
2225 get { return this . UserClaims . Count > 0 ? IdentityResourceClaimsHelper . CreateString ( UserClaims ) : userClaimsString ; }
2326 set { userClaimsString = value ; }
2427 }
28+ [ Display ( Name = "User Claim(s)" ) ]
2529 public List < IdentityResourceClaim > UserClaims { get ; set ; } = new List < IdentityResourceClaim > ( ) ;
2630 }
2731}
Original file line number Diff line number Diff line change 2020<a asp-action =" GetAll" class =" btn btn-primary mb-3" > <i class =" bi bi-arrow-left-circle-fill" ></i > Go back to List</a >
2121
2222<div class =" card" >
23+ <div class =" card-header client-theme" ></div >
2324 <div class =" card-body" >
24- <div class =" card-header client-theme" ></div >
2525 <h4 class =" card-title" >Create Client</h4 >
2626 <hr />
2727 <div id =" accordion" >
141141 <button type =" button" class =" btn btn-outline-primary scope-toggler" value =" @scope" >@scope </button >
142142 }
143143 <br />
144- <p ><u >Create new custom scopes:</u ></p >
144+ <p class = " mt-3 " ><u >Create new custom scopes:</u ></p >
145145 <div class =" keyHandler d-flex col-5" >
146146 <button class =" btn centered" type =" button" id =" addKey" > <i class =" bi bi-plus" ></i > </button >
147147 <input type =" text" placeholder =" Keyword + Enter" id =" keysInput" >
Original file line number Diff line number Diff line change 2424 <form method =" post" asp-controller =" IdentityResources" asp-action =" Create" >
2525 <div class =" row" >
2626 <div class =" form-group col-6" >
27- <label asp-for =" Name" class = " col-form-label " ></label >
27+ <LabelInfo asp-for =" Name" ></LabelInfo >
2828 <div >
2929 <input asp-for =" Name" class =" form-control" />
3030 </div >
3131 <span class =" text-danger" asp-validation-for =" Name" ></span >
3232 </div >
3333
3434 <div class =" form-group col-6" >
35- <label asp-for =" DisplayName" class = " col-form-label " ></label >
35+ <LabelInfo asp-for =" DisplayName" ></LabelInfo >
3636 <div >
3737 <input asp-for =" DisplayName" class =" form-control" />
3838 </div >
4141 </div >
4242 <div class =" row" >
4343 <div class =" form-group col-6" >
44- <label asp-for =" UserClaimsString " class = " col-form-label " ></label >
44+ <LabelInfo asp-for =" UserClaims " ></LabelInfo >
4545
4646 <div class =" keyHandler d-flex" >
4747 <button class =" btn centered" type =" button" id =" addKey" > <i class =" bi bi-plus" ></i > </button >
Original file line number Diff line number Diff line change 2525 <input type =" hidden" asp-for =" Id" />
2626 <div class =" row" >
2727 <div class =" form-group col-6" >
28- <label asp-for =" Name" class = " col-form-label " ></label >
28+ <LabelInfo asp-for =" Name" ></LabelInfo >
2929 <div >
3030 <input asp-for =" Name" class =" form-control" />
3131 </div >
3232 <span class =" text-danger" asp-validation-for =" Name" ></span >
3333 </div >
3434
3535 <div class =" form-group col-6" >
36- <label asp-for =" DisplayName" class = " col-form-label " ></label >
36+ <LabelInfo asp-for =" DisplayName" ></LabelInfo >
3737 <div >
3838 <input asp-for =" DisplayName" class =" form-control" />
3939 </div >
4242 </div >
4343 <div class =" row" >
4444 <div class =" form-group col-6" >
45- <label asp-for =" UserClaimsString " class = " col-form-label " ></label >
45+ <LabelInfo asp-for =" UserClaims " ></LabelInfo >
4646
4747 <div class =" keyHandler d-flex" >
4848 <button class =" btn centered" type =" button" id =" addKey" > <i class =" bi bi-plus" ></i > </button >
Original file line number Diff line number Diff line change 3232}
3333
3434/* Tooltip text */
35- .tooltip .tooltiptext {
36- visibility : hidden;
37- width : 200px ;
38- background-color : black ;
39- color : white;
40- text-align : center;
41- padding : 5px 0 ;
42- border-radius : 6px ;
43- /* Position the tooltip text */
44- bottom : 100% ;
45- left : 50% ;
46- margin-left : -60px ;
47- position : absolute;
48- z-index : 1 ;
49- }
35+ .tooltip .tooltiptext {
36+ visibility : hidden;
37+ width : 200px ;
38+ background-color : # 0085f8 ;
39+ color : white;
40+ text-align : center;
41+ padding : 5px 0 ;
42+ border-radius : 6px ;
43+ /* Position the tooltip text */
44+ bottom : 100% ;
45+ left : 50% ;
46+ margin-left : -60px ;
47+ position : absolute;
48+ z-index : 1 ;
49+ }
5050
5151/* Show the tooltip text when you mouse over the tooltip container */
5252.tooltip : hover .tooltiptext {
You can’t perform that action at this time.
0 commit comments