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

Modify jwt auth requestUrl scheme based on x-scheme #148

Open
wants to merge 1 commit into
base: predix_prunes/jwt_grant_4.30.0
Choose a base branch
from

Conversation

yl2ge
Copy link

@yl2ge yl2ge commented Jan 13, 2020

This PR updates the scheme of the requestUrl used to initialize JwtBearerAssertionTokenAuthenticator to match the x-scheme of the original call by the device.

Fix applied to em-onprem deployment of uaa.

JwtBearerAssertionTokenAuthenticator is currently initiated with http://uaa... based on incoming request. The headers x-forwarded-protocol and x-forwarded-host were not recieved as part of the request, despite being added by ingress-nginx.

Device sending jwt token with uaa audience https://uaa... but fails audience comparison against http://uaa.... Devices fails to acquire access token as a result.

Fix was based on ge_4.10.2 tag.

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

Successfully merging this pull request may close these issues.

1 participant