# Login with OAuth 2.0 - invalid\_user\_info\_response

**URL:** <https://forum.flowable.org/t/login-with-oauth-2-0-invalid-user-info-response/10970>\
**Category:** Flowable Engine\
**Created:** [October 26, 2023, 2:23pm UTC](https://forum.flowable.org/t/login-with-oauth-2-0-invalid-user-info-response/10970 "2023-10-26T14:23:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoachimVeulemans](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@JoachimVeulemans](https://forum.flowable.org/u/JoachimVeulemans)\
**Post date:** [October 26, 2023, 2:23pm UTC](https://forum.flowable.org/t/login-with-oauth-2-0-invalid-user-info-response/10970/1 "2023-10-26T14:23:58Z")

</div>

I am trying to setup Flowable with a Keycloak integration.

When going to the root url of Flowable, i am being redirected to Keycloak, I can log in but when I am redirected to Flowable, I am seeing the following error message in the browser:

```auto
[invalid_user_info_response] An error occurred while attempting to retrieve the UserInfo Resource: 403 Forbidden: [no body]

```

I am running the .war file in a Tomcat Docker container. I have added the needed dependencies and added this in flowable-default.properties:

```auto
spring.security.oauth2.resourceserver.jwt.issuer-uri=https://DOMAIN/auth/realms/REALM
spring.security.oauth2.client.registration.keycloak.client-id=flowable
spring.security.oauth2.client.registration.keycloak.client-secret=SECRET
spring.security.oauth2.client.registration.keycloak.client-name=Flowable
spring.security.oauth2.client.registration.keycloak.scope=openid,profile,email
spring.security.oauth2.client.registration.keycloak.authorization-grant-type=authorization_code
spring.security.oauth2.client.provider.keycloak.issuer-uri=https://DOMAIN/auth/realms/REALM
spring.security.oauth2.client.provider.keycloak.user-name-attribute=email
flowable.common.app.security.type=oauth2
flowable.common.app.security.oauth2.authorities-attribute=groups
flowable.common.app.security.oauth2.groups-attribute=userGroups
flowable.common.app.security.oauth2.default-authorities=access-task
flowable.common.app.security.oauth2.default-groups=flowableUser
flowable.common.app.security.oauth2.full-name-attribute=name
flowable.common.app.security.oauth2.email-attribute=email

flowable.idm.app.keycloak.enabled=true
flowable.idm.app.keycloak.server=https://DOMAIN/
flowable.idm.app.keycloak.authentication-realm=master
flowable.idm.app.keycloak.authentication-user=USERNAME_IN_MASTER_REALM
flowable.idm.app.keycloak.authentication-password=PASSWORD_IN_MASTER_REALM
flowable.idm.app.keycloak.realm=REALM

```

What am I doing wrong in my configuration?

---

<div class="post-metadata">

**Author:** ![elinam](https://avatars.discourse-cdn.com/v4/letter/e/ac8455/32.png) [@elinam](https://forum.flowable.org/u/elinam)\
**Post date:** [November 30, 2023, 6:27am UTC](https://forum.flowable.org/t/login-with-oauth-2-0-invalid-user-info-response/10970/2 "2023-11-30T06:27:34Z")

</div>

Hi! Were you able to figure this out? Which Keycloak version are you using?  
I’m experiencing the same issue with Keycloak 22.

---

<div class="post-metadata">

**Author:** ![sldzys](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/sldzys/32/3472_2.png) [@sldzys](https://forum.flowable.org/u/sldzys)\
**Post date:** [April 23, 2024, 8:26am UTC](https://forum.flowable.org/t/login-with-oauth-2-0-invalid-user-info-response/10970/3 "2024-04-23T08:26:22Z")

</div>

Hellllo, Has this issue been resolved? I also encountered the same problem.
