Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X-Access-Token cannot be found in header to upstream #184

Open
devgodman opened this issue Dec 16, 2020 · 4 comments
Open

X-Access-Token cannot be found in header to upstream #184

devgodman opened this issue Dec 16, 2020 · 4 comments

Comments

@devgodman
Copy link

I find from the readme that X-Access-Token is returned from Kong to the request to upstream. However, I can only find X-UserInfo now. Is it safe to only use this info for the resource server to verify the request? Besides, why X-Access-Token is not returned? Thanks.

@motiisr
Copy link

motiisr commented Dec 17, 2020

+1
seems this is fixed in #75 but it didn't release in 1.1.0.

@ghunteranderson
Copy link

Unfortunately, I think @motiisr is right. The feature for X-Access-Token was merged to master but was never released. Looking at the repo activity, I'm not optimistic it will be released. The last commit to master was Jun 12th 2019 and I'm not seeing contributor responses on PRs or issues.

@Darguelles
Copy link

@devgodman you can import the code plugin directly on your Kong instance, then use or customize all features. If you need an example, I've created this repo using this plugin to protect my backend services.

@Fabryprog
Copy link

Guys, I had same issue and I resolved creating a new oidc plugin local version.

Specifically,
I copied the files inside https://github.com/nokia/kong-oidc/tree/master/kong/plugins/oidc into a temporary folder (/opt/plugin-oidc-src/) and launch following commands:

luarocks make /opt/plugin-oidc-src/kong-oidc-1.2.0-0.rockspec
luarocks pack --verbose kong-oidc 1.2.0
luarocks install kong-oidc-1.2.0-0.all.rock

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants