Keyruu commented on issue #7017:
URL: https://github.com/apache/apisix/issues/7017#issuecomment-1122483001
I got it working. I used a serverless function and added the userinfo in a
cookie:
`"serverless-post-function": {
"disable": false,
"functions": [
"return function(conf, ctx) local core = require(\"apisix.core\");
if core.request.header(ctx, \"X-Userinfo\") then\n
core.response.add_header(\"Set-Cookie\", \"userinfo=\" ..
core.request.header(ctx, \"X-Userinfo\") .. \";\")\n end; end"
],
"phase": "rewrite"
},`
It would be cool if this could just be a flag in the OIDC plugin because in
my opinion this would be very useful for everyone.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]