[keycloak-user] Backend to Backend Call

Stian Thorgersen sthorger at redhat.com
Tue Nov 1 05:14:20 EDT 2016


Actually this is not a use-case that we solve particularly well, but
passing the refresh token is not a great idea.

One option would be to increase the access token timeout, but that would
have side effects on all other use-cases. The best and most secure option
would be to have a one-time token that is passed to the asynchronous
service. This is not something we have support for directly though and it
would most likely not involve the IdP (Keycloak server) at all, but rather
be a signed JWT issued by the caller that can be used by the async service
for the callback.

On 31 October 2016 at 22:10, Morse, Alexander (US - Newton) <
amorse at deloitte.com> wrote:

> Hi,
>
> Want to know the recommended approach for having asynchronous backend
> services that are secured through bearer tokens call each other. We have an
> interactive web application that calls a backend service. The JavaScript
> adapter places the access token in the Authorization header. This backend
> services starts an asynchronous job that then calls another backend
> service, passing along the same Access Token. The problem arises when the
> access token has expired while the first job was processing. Seems like one
> relatively straight forward approach would be to have the front end pass a
> refresh token to the backend, which it can use to obtain a new access
> token. Are there better approaches? The adapters do not seem to natively
> support this.
>
> Thanks,
> Alex
>
>
>
>
> This message (including any attachments) contains confidential information
> intended for a specific individual and purpose, and is protected by law. If
> you are not the intended recipient, you should delete this message and any
> disclosure, copying, or distribution of this message, or the taking of any
> action based on it, by you is strictly prohibited.
>
> v.E.1
>
>
>
>
>
>
>
> _______________________________________________
> 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