File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -230,18 +230,20 @@ public void parseAccessRuleFile()
230230
231231 while ( condition [ c . Key ] . Contains ( "CLAIM(" ) )
232232 {
233- var split = c . Value . Split ( "CLAIM(" ) ;
233+ var conditionValue = condition [ c . Key ] ;
234+
235+ var split = conditionValue . Split ( "CLAIM(" ) ;
234236 split = split [ 1 ] . Split ( ")" ) ;
235237 var claim = split [ 0 ] ;
236238 if ( claim . StartsWith ( "token:" ) )
237239 {
238240 var value = tokenClaims ? . Where ( tc => tc . Type == claim ) . FirstOrDefault ( ) ? . Value ;
239- condition [ c . Key ] = c . Value . Replace ( $ "CLAIM({ claim } )", $ "\" { value } \" ") ;
241+ condition [ c . Key ] = conditionValue . Replace ( $ "CLAIM({ claim } )", $ "\" { value } \" ") ;
240242 }
241243 if ( claim == accessRole )
242244 {
243245 var value = tokenClaims ? . Where ( tc => tc . Type == claim ) . FirstOrDefault ( ) ? . Value ;
244- condition [ c . Key ] = c . Value . Replace ( $ "CLAIM({ accessRole } )", $ "\" { value } \" ") ;
246+ condition [ c . Key ] = conditionValue . Replace ( $ "CLAIM({ accessRole } )", $ "\" { value } \" ") ;
245247 }
246248 }
247249 }
You can’t perform that action at this time.
0 commit comments