amardeep2006 / camunda-okta-oidc-sso

Implement Okta Single Sign On in Camunda Webapps
Apache License 2.0
0 stars 0 forks source link

Getting error when going to localhost:8080 #3

Closed patozgg closed 4 months ago

patozgg commented 11 months ago

I am getting the following error when visiting localhost:8080. Any clues on what it might be?

java.lang.NullPointerException: Cannot invoke "org.camunda.bpm.webapp.impl.security.auth.UserAuthentication.getProcessEngineName()" because "authentication" is null

Thank you!

amardeep2006 commented 11 months ago

@patozgg Yes I am aware of this and had added it to readme of the repo as well. Camunda made some breaking changes in version 7.19 . This was working till camunda 7.18. I am working on changes required and plan to release by this weekend.

kbarnesMCC commented 10 months ago

@amardeep2006 just chiming in to say I'm also curious to see if/how you may have addressed this authentication null issue.

amardeep2006 commented 10 months ago

@patozgg @kbarnesMCC Thanks for your feedback and patience. Finally got time today and fixed the issue. Please test and let me know.

I also upgraded it to Camunda 7.20 and Springboot 3.2

amardeep2006 commented 10 months ago

@amardeep2006 just chiming in to say I'm also curious to see if/how you may have addressed this authentication null issue.

I had to add a new class https://github.com/amardeep2006/camunda-okta-oidc-sso/blob/main/src/main/java/com/example/workflow/config/IdentityProviderPlugin.java

Here are few reference links

 https://docs.camunda.org/security/notices/#notice-85
 https://docs.camunda.org/manual/7.19/user-guide/security/#authentication-cache
 https://github.com/camunda-consulting/camunda-7-code-examples/tree/main/snippets/springboot-security-sso
 https://github.com/camunda/camunda-bpm-platform/issues/3475
 https://github.com/camunda/camunda-bpm-platform/issues/3689
patozgg commented 9 months ago

Thank you!

amardeep2006 commented 4 months ago

closing the issue. Also upgraded example to camunda 7.21 and springboot 3.3.0