Skip to content

Commit ce710bb

Browse files
committed
adding liks to the samples and removing acrs from code
1 parent 7dcf708 commit ce710bb

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

articles/active-directory/develop/claims-challenge.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,14 +225,10 @@ else
225225
```javascript
226226
const checkForRequiredAuthContext = (req, res, next, authContextId) => {
227227
// req.authInfo contains the decoded access token payload
228-
if (!req.authInfo['acrs'] || !req.authInfo['acrs'].includes(authContextId)) {
229-
if (isClientCapableOfClaimsChallenge(req.authInfo)) {
228+
if (isClientCapableOfClaimsChallenge(req.authInfo)) {
230229
// Return formatted claims challenge as this client understands this
231-
} else {
232-
return res.status(403).json({ error: 'Client is not capable' });
233-
}
234230
} else {
235-
next();
231+
return res.status(403).json({ error: 'Client is not capable' });
236232
}
237233
}
238234

@@ -252,3 +248,5 @@ const isClientCapableOfClaimsChallenge = (accessTokenClaims) => {
252248
- [Microsoft identity platform and OAuth 2.0 authorization code flow](v2-oauth2-auth-code-flow.md#request-an-authorization-code)
253249
- [How to use Continuous Access Evaluation enabled APIs in your applications](app-resilience-continuous-access-evaluation.md)
254250
- [Granular Conditional Access for sensitive data and actions](https://techcommunity.microsoft.com/t5/azure-active-directory-identity/granular-conditional-access-for-sensitive-data-and-actions/ba-p/1751775)
251+
- [React single-page application using MSAL React to sign-in users against Azure Active Directory](https://github.com/Azure-Samples/ms-identity-javascript-react-tutorial/tree/main/2-Authorization-I/1-call-graph)
252+
- [Enable your ASP.NET Core web app to sign in users and call Microsoft Graph with the Microsoft identity platform](https://github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/tree/master/2-WebApp-graph-user/2-1-Call-MSGraph)

0 commit comments

Comments
 (0)