i am looking forward to restricting user access based on scope. i am using Kong API gateway
here is my docker file used for adding nokia-oidc
plugin. https://github.com/nokia/kong-oidc
docker file :
FROM kong:latest
USER root
RUN apk update && apk add git unzip luarocks
RUN luarocks install kong-oidc
USER kong
in token, i am getting scope like "openid profile email"
"session_state": "8d408ace-4692-458c-a7d0-69b19c1ded11",
"acr": "0",
"allowed-origins": [
"*"
],
"scope": "openid profile email",
i am looking how restrict used based on scope exist or not as openid
is default one.
it's not working as expected. if myscope not exist in token still i am able to login.
please help thanks in advance...!