Has anyone implement OAuth2

Hello,

I would like to use OAuth2 instead of the basic authentication. But I’m having trouble starting. I saw the other questions related to this subject, but I couldn’t find a concrete example. Can anyone provide me with an example ?

Thank you

Hi @camunda-test,

here is an example for spring-boot: https://github.com/camunda-consulting/code/tree/master/snippets/springboot-security-sso

Which platform do you use?

Cheers, Ingo

Hello @Ingo_Richtsmeier, thank you for your answer. I’m new to camunda so I’m not sure if I understood correctly how it works.

So I uncommented the code for Basic authentication in camunda and I thought that if I want to change it to OAith2 I should change the source code of the library so I should use the same thing you do in camunda ?
Then I also build an Angular 2+ application that I use to communicate with the REST API in which I will implement some security and authentication mechanisms.

What I want to do is use secure authentication for the REST API and not just for the application I use to deploy camunda.

Hi @camunda-test,

I havn’t done it by myself, but you should exchange this class concerning to your needs: org.camunda.bpm.engine.rest.security.auth.ProcessEngineAuthenticationFilter.

I don’t know about the implementation details to connect to Oauth2. Your class can be integrated with maven overlay.

You can find more details about enhancing the REST api here: https://docs.camunda.org/manual/7.9/reference/rest/overview/embeddability/

Hope this helps, Ingo

1 Like