revomatico / kong-oidc

OIDC plugin for Kong
Apache License 2.0
110 stars 75 forks source link

fix scope validation #11

Closed ruiengana closed 2 years ago

ruiengana commented 2 years ago

when scope validation is active but token introspection response doesn't contains a scope claim the code fails because it's always expecting scope claim to exist. This commit fixes that scenario so independently of scope claim exist in introspection response it always behaves correctly.