We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 789eb19 commit 37c938cCopy full SHA for 37c938c
libraries/botframework-connector/src/auth/jwtTokenValidation.ts
@@ -132,6 +132,9 @@ export namespace JwtTokenValidation {
132
if (authConfig.validateClaims) {
133
// Call the validation method if defined (it should throw an exception if the validation fails)
134
await authConfig.validateClaims(claims);
135
+ } else if (SkillValidation.isSkillClaim(claims)) {
136
+ // Skill claims must be validated using AuthenticationConfiguration validateClaims
137
+ throw new AuthenticationError('Unauthorized Access. Request is not authorized. Skill Claims require validation.', StatusCodes.UNAUTHORIZED);
138
}
139
140
0 commit comments