Home Keycloak secure both website and REST API
Reply: 0

Keycloak secure both website and REST API

Luka
1#
Luka Published in 2017-12-05 09:55:09Z

I have a website (Java EE - Wildfly) secured with the Keycloak adapter. It has to be secure because some data is already preloaded on the site. Now I want to refresh this site in Javascript using my applications REST API, which is secured as a Bearer-Only client.

It works using both JS and Java adapter, but the amount of redirects is distracting.

Access website --> Java adapter redirects you to keycloak --> You login --> Redirect to website --> JS adapter redirects you to keycloak --> it detects you are already logger in --> Redirect to webpage.

Is there any way to improve this flow?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.334546 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO