Find more posts tagged with
Sort by:
1 - 7 of
71
A guide how to use the extension can be found here:
How can i [1. Enable basic auth in Keycloak]
I get all container , and i guess that , rapidminer/rapidminer-server:9.10.4-gen2 with CONTAINER ID [07a1e28603f6] is rm-server-homedir

So i access to this container and edit keycloak.json in path [/rapidminer/home/configuration]


I changed "enable-basic-auth": true
and then i get RM_SERVER_JSESSIONID by [Login via web interface, open the browser's developer tools and use the very same RM_SERVER_JSESSIONID]

i got RM_SERVER_JSESSIONID (b4uTa9Wc23gkbvZmS2akuPah) and go to post man and set Bearer Token to [Keycloak-b4uTa9Wc23gkbvZmS2akuPah] and send request to /api/rest/tokenservice . But i got response [Access denied]


So i access to this container and edit keycloak.json in path [/rapidminer/home/configuration]


I changed "enable-basic-auth": true
and then i get RM_SERVER_JSESSIONID by [Login via web interface, open the browser's developer tools and use the very same RM_SERVER_JSESSIONID]

i got RM_SERVER_JSESSIONID (b4uTa9Wc23gkbvZmS2akuPah) and go to post man and set Bearer Token to [Keycloak-b4uTa9Wc23gkbvZmS2akuPah] and send request to /api/rest/tokenservice . But i got response [Access denied]

Hi. Sorry if my list was confusing, but all 3 are different approaches to solve your problem.
For basic auth 1. you then need to enable it for Keycloak as you did, then use your Keycloak credentials as Authorization
type in Postman.
For cookie value 2. you need to login and provide the value of the cookie inside the Postman header, but not as Bearer Token content.
For Keycloak token 3. approach, you need to get a valid access token from the Keycloak token endpoint or look into what @David_A posted and use this as Bearer Token value.
We usually recommend approach 3, although I liked to list all of them for the sake of completeness.
Thank you for your reply. I have some points to confirm as follows:
1. For basic auth 1 , Where can I get Keycloak credentials? Please provide detailed instructions
2. I got the RM_SERVER_JSESSIONID from the cookie then put it in the RM_SERVER_JSESSIONID field of the header in the request /api/rest/tokenservice but still can't get the token and return "Access denied"


3. I get the token through the api /auth/realms/master/protocol/openid-connect/token . However, when calling the API /executions/jobs using the token obtained first step, the result returns an Unauthorized error.


Thanks you.
1. For basic auth 1 , Where can I get Keycloak credentials? Please provide detailed instructions
2. I got the RM_SERVER_JSESSIONID from the cookie then put it in the RM_SERVER_JSESSIONID field of the header in the request /api/rest/tokenservice but still can't get the token and return "Access denied"


3. I get the token through the api /auth/realms/master/protocol/openid-connect/token . However, when calling the API /executions/jobs using the token obtained first step, the result returns an Unauthorized error.


Thanks you.
@aschaferdiek
very simple i modified config in .env file and got token via API api/rest/tokenservice with id and password as described in tokenservice document.
Which is completely unlike the way you are instructing .

very simple i modified config in .env file and got token via API api/rest/tokenservice with id and password as described in tokenservice document.
Which is completely unlike the way you are instructing .

Sort by:
1 - 1 of
11
@aschaferdiek
very simple i modified config in .env file and got token via API api/rest/tokenservice with id and password as described in tokenservice document.
Which is completely unlike the way you are instructing .

very simple i modified config in .env file and got token via API api/rest/tokenservice with id and password as described in tokenservice document.
Which is completely unlike the way you are instructing .

{
"idToken": "the-valid-token",
"expirationDate": "the-exp"
}
{
...
"enable-basic-auth": true,
...
}