Hi everyone,
I have a backend application in Java using JAXRS Rest APIs. I have used keycloak to secure the REST endpoints. In case if I need to access endpoint, keycloak access key is required to be sent.
Example:
localhost:8080/myapp/rest/test
returns unauthorized, unless sent with Bearer token which is received using:
localhost:8180/auth/realms/master/protocol/openid-connect/token
with body containing arguments (realm/ client/ etc)
Now I need to create front end application in Vue.js and call these endpoints. How can I manage to do that having two different URLs ( keycloak and backend)
Is there a way where I can connect to keycloak using my backend and call backend from my frontend only.
In case if there is any reference, it will be really helpful.
I found the following link but it uses vert.x which support authenticating to keycloak, I cannot find anything similar in Java. I am new to both keycloak and vue.js therefore any guideline/ help will be highly appreciated.
Thank you