# Spring Boot REST APIs SSO issue

**URL:** <https://forum.camunda.io/t/spring-boot-rest-apis-sso-issue/2548>\
**Category:** Discussion & Questions\
**Tags:** spring-boot-starter\
**Created:** [January 23, 2017, 1:56pm UTC](https://forum.camunda.io/t/spring-boot-rest-apis-sso-issue/2548 "2017-01-23T13:56:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AjayVerma](https://forum.camunda.io/letter_avatar_proxy/v4/letter/a/8491ac/32.png) [@AjayVerma](https://forum.camunda.io/u/AjayVerma)\
**Post date:** [January 23, 2017, 1:56pm UTC](https://forum.camunda.io/t/spring-boot-rest-apis-sso-issue/2548/1 "2017-01-23T13:56:16Z")

</div>

We are using camunda-bpm-spring-boot-starter and have managed to configure SSO via an external identity provider (IdP).  
We are able to successfully deploy a process and start an instance of it using REST APIs.  
Every new task creation creates an authorization in the DB for that task based on task’s assignee.  
But, in our case camunda is not able to filter out users based on this authorization and it **allows any user to complete any other user’s task**. After looking at the ProcessEngineAuthenticationFilter plugin, we are adding the authentication to the rest api via this:

```
EngineUtil.lookupProcessEngine(DEFAULT_PROCESS_ENGINE_NAME)
            .getIdentityService()
            .setAuthentication(accessToken.getPreferredUsername(),
                    ((ArrayList<String>) accessToken.getOtherClaims().get(DEFAULT_GROUP_CLAIM_ID)));

```

Are we missing out something?

---

<div class="post-metadata">

**Author:** ![Philipp\_Ossler](https://forum.camunda.io/user_avatar/forum.camunda.io/philipp_ossler/32/25299_2.png) [@Philipp\_Ossler](https://forum.camunda.io/u/Philipp_Ossler)\
**Post date:** [January 23, 2017, 2:43pm UTC](https://forum.camunda.io/t/spring-boot-rest-apis-sso-issue/2548/2 "2017-01-23T14:43:34Z")

</div>

Hi @AjayVerma,

this issue could be related to [the thread](https://forum.camunda.io/t/camunda-spring-boot-authorization-feature-or-bug/2483). Can you confirm it?

Best regards,  
Philipp

---

<div class="post-metadata">

**Author:** ![tomorrow](https://forum.camunda.io/letter_avatar_proxy/v4/letter/t/b3f665/32.png) [@tomorrow](https://forum.camunda.io/u/tomorrow)\
**Post date:** [January 23, 2017, 6:12pm UTC](https://forum.camunda.io/t/spring-boot-rest-apis-sso-issue/2548/3 "2017-01-23T18:12:29Z")

</div>

Hi, it’s definitely the same issue. You can get it to work as I did, however, somebody could confirm if it’s a bug or feature, and if it’s a bug, then incident should be created.

---

<div class="post-metadata">

**Author:** ![AjayVerma](https://forum.camunda.io/letter_avatar_proxy/v4/letter/a/8491ac/32.png) [@AjayVerma](https://forum.camunda.io/u/AjayVerma)\
**Post date:** [January 24, 2017, 8:59am UTC](https://forum.camunda.io/t/spring-boot-rest-apis-sso-issue/2548/4 "2017-01-24T08:59:04Z")

</div>

Hi, @Philipp_Ossler @tomorrow

Thanks for your suggestion. It worked.

Regards,  
Ajay

---

<div class="post-metadata">

**Author:** ![system](https://forum.camunda.io/uploads/default/original/3X/5/8/58d50142eacca605d35cb1ef9e6b86ae85f49436.png) [@system](https://forum.camunda.io/u/system)\
**Post date:** [January 30, 2024, 10:46am UTC](https://forum.camunda.io/t/spring-boot-rest-apis-sso-issue/2548/5 "2024-01-30T10:46:12Z")

</div>

Closed on January 30, 2024, 10:46am UTC


