Replies: 2 comments 1 reply
-
|
What is the url you are trying to reach on the api ? |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
After logging into the AKHQ web interface, your browser stores the JWT token generated by AKHQ as a cookie. Once you have the AKHQ JWT token, use it in the Authorization header of your curl command: export YOUR_AKHQ_JWT_TOKEN=’superLongTokenExtractedFromCookieUnderJWTvalue’
curl -sH "Authorization: Bearer ${YOUR_AKHQ_JWT_TOKEN}” \
-H "Accept: application/json” \
http://localhost:8080/api/cluster-name/node |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I configured the OIDC authentication using Keycloak IDP and works like a charm!
But when trying to access the REST API, I get an html response saying:
You need to enable JavaScript to run this app.I think that the problem is maybe related to the OIDC authentication, since it needs the browser to perform the authorization code flow. But shouldn't it accept a Bearer Token generated by the Keycloak directly?
Any help would be appreciated! Thanks!
Here is the full configuration:
Beta Was this translation helpful? Give feedback.
All reactions