Skip to content

Commit

Permalink
fix: change claim for v2.0 id_token compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
nickshine committed Apr 6, 2020
1 parent c591316 commit 892d768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion authz/microsoft.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ function isAuthorized(decoded, request, callback, unauthorized, internalServerEr
}

function getSubject(decoded) {
return decoded.payload.unique_name;
return decoded.payload.upn || decodec.payload.sub;
}

exports.isAuthorized = isAuthorized;
Expand Down

0 comments on commit 892d768

Please sign in to comment.