[keycloak-user] Authentication from spring security without redirection

Sebastien Blanc sblanc at redhat.com
Wed Jan 25 09:24:08 EST 2017


Hi,

Not sure I understand, have you set bearer-only for your Spring REST
service ? With this you should not have a redirection and it should just
check for a token on the header of the request.


On Wed, Jan 25, 2017 at 2:39 PM, Dekel Aslan <dekela at perfectomobile.com>
wrote:

> Hi,
> I'm looking for a way of exposing REST services with Keycloak
> authentication.
>
> Does Keycloak have a bean that handles authentication for spring security
> without filter / redirection?
>
> Further details: I use spring security adapter, but I can't use it for
> http calls because it redirects to Keycloak login page.
> I want to get the user credentials and invoke Keycloak service in the
> server (with REST "/token"), but then I won't have an authentication object
> as the processing filter creates.
>
> Thanks,
> Dekel.
>
> The information contained in this message is proprietary to the sender,
> protected from disclosure, and may be privileged. The information is
> intended to be conveyed only to the designated recipient(s) of the message.
> If the reader of this message is not the intended recipient, you are hereby
> notified that any dissemination, use, distribution or copying of this
> communication is strictly prohibited and may be unlawful. If you have
> received this communication in error, please notify us immediately by
> replying to the message and deleting it from your computer. Thank you.
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>


More information about the keycloak-user mailing list