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

Access denied after logging in a demo or theterminator #12

Open
theckang opened this issue Nov 16, 2021 · 2 comments
Open

Access denied after logging in a demo or theterminator #12

theckang opened this issue Nov 16, 2021 · 2 comments

Comments

@theckang
Copy link
Contributor

During a customer workshop, users were receiving the error Access denied when logging in as a demouser or theterminator. There were no issues in the keycloak or ingress gateway pods. The issue is the nodeJS app user interface. In the app-ui logs, it throws this error:

Could not obtain grant code: Error: certificate has expired

It seems the keycloak nodeJS library rejects the callback if the URL is not valid HTTPS.

Setting the following environment variable fixed the issue:

oc set env dc/app-ui NODE_TLS_REJECT_UNAUTHORIZED=0
@dudash
Copy link
Contributor

dudash commented Nov 16, 2021

I thought this flag changed the behavior to stop checking the certs on TLS connections. Error seems to indicate that it's an expired cert not a HTTP callback.
https://nodejs.org/api/cli.html#node_tls_reject_unauthorizedvalue

I'll approve the PR but recommend keeping this issue open until we resolve the proper way.

@theckang
Copy link
Contributor Author

theckang commented Nov 17, 2021

I'm not actually sure why there is a cert check at all. In the workshop, we use a http endpoint. We don't have a https endpoint for the user interface.

So, I think the error is throwing because it expects a https endpoint. I'm also confused because we didn't have this issue before.

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

2 participants