Skip to content

Commit 0d28aaa

Browse files
authored
Merge pull request #109 from sadika9/patch-1
Validate v2.0 token app id (azp)
2 parents 9275c97 + f9d635c commit 0d28aaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Provider/Azure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ public function validateAccessToken($accessToken)
281281
* @return void
282282
*/
283283
public function validateTokenClaims($tokenClaims) {
284-
if ($this->getClientId() != $tokenClaims['aud'] && $this->getClientId() != $tokenClaims['appid']) {
284+
if ($this->getClientId() != $tokenClaims['aud']) {
285285
throw new \RuntimeException('The client_id / audience is invalid!');
286286
}
287287
if ($tokenClaims['nbf'] > time() || $tokenClaims['exp'] < time()) {

0 commit comments

Comments
 (0)