This repository was archived by the owner on Jan 5, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
libraries/Microsoft.Bot.Connector/Authentication Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ public static string GetAppIdFromClaims(IEnumerable<Claim> claims)
183183 /// <param name="authConfig">An <see cref="AuthenticationConfiguration"/> instance.</param>
184184 /// <param name="claims">The list of claims to validate.</param>
185185 /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns>
186- /// <exception cref="UnauthorizedAccessException">If the validation returns false.</exception>
186+ /// <exception cref="UnauthorizedAccessException">If the validation returns false, or ClaimsValidator is null and this is a skill claim .</exception>
187187 internal static async Task ValidateClaimsAsync ( AuthenticationConfiguration authConfig , IEnumerable < Claim > claims )
188188 {
189189 if ( authConfig . ClaimsValidator != null )
@@ -192,6 +192,10 @@ internal static async Task ValidateClaimsAsync(AuthenticationConfiguration authC
192192 var claimsList = claims as IList < Claim > ?? claims . ToList ( ) ;
193193 await authConfig . ClaimsValidator . ValidateClaimsAsync ( claimsList ) . ConfigureAwait ( false ) ;
194194 }
195+ else if ( SkillValidation . IsSkillClaim ( claims ) )
196+ {
197+ throw new UnauthorizedAccessException ( "ClaimsValidator is required for validation of Skill Host calls." ) ;
198+ }
195199 }
196200
197201 /// <summary>
You can’t perform that action at this time.
0 commit comments