mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-11-04 15:50:49 +08:00 
			
		
		
		
	Claim values are now being shown when constructing. ClaimValueNotAuthorisedError. (#711)
This commit is contained in:
		
				
					committed by
					
						
						Thiago Loureiro
					
				
			
			
				
	
			
			
			
						parent
						
							11a2d13f18
						
					
				
				
					commit
					7ba6d303b4
				
			@@ -32,7 +32,7 @@ namespace Ocelot.Authorisation
 | 
				
			|||||||
                    if (!authorised)
 | 
					                    if (!authorised)
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        return new ErrorResponse<bool>(new ClaimValueNotAuthorisedError(
 | 
					                        return new ErrorResponse<bool>(new ClaimValueNotAuthorisedError(
 | 
				
			||||||
                                $"claim value: {values.Data} is not the same as required value: {required.Value} for type: {required.Key}"));
 | 
					                                $"claim value: {string.Join(", ", values.Data)} is not the same as required value: {required.Value} for type: {required.Key}"));
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                else
 | 
					                else
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user