Skip to content

amardeep2006/camunda-okta-saml-sso

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

camunda-okta-saml-sso

okta implementation using saml2 in camunda 7

Prerequisites Java 17 Git SCM

Generate self-signed ssl certificate.

  • Clone this repo and go to camunda-okta-saml-sso/src/main/resources/credentials
  • Launch git bash in credentials directory and run this command

openssl req -x509 -nodes -sha256 -days 3650 -newkey rsa:2048 -keyout private.key -out certificate.crt

It will prompt you some questions answer as per your organization. Sample Values :

Country Name (2 letter code) [AU]:IN

State or Province Name (full name) [Some-State]:UP

Locality Name (eg, city) []:Amroha

Organization Name (eg, company) [Internet Widgits Pty Ltd]:amardeep

Organizational Unit Name (eg, section) []:tech

Common Name (e.g. server FQDN or YOUR name) []:camunda

Email Address []:[email protected]

This will generate certificate.crt and private.key in credentials folder.

Setup your application on Okta

Register for an okta developer account on https://developer.okta.com

Register an app on Okta as per details below

Navigation is : Applications : Create App Integration

Attribute Statements :

    first, Value = user.firstName
    last , Value = user.lastName
    email , Value = user.email

Group Attribute Statements :

    groups, Filter = Matches Regexp = .*

To extract IDP Metadata, do the following

  • Go to your app in okta and click on tab "Sign On" and navigate to SAML Signing Certificates

img.png

  • click on link "Identity Provider metadata"
  • Right click and select "View page source"
  • Copy the complete XML and paste into file "main/resources/okta-metadata.xml"

Navigation is : Directory : People/Groups

Login to your okta Tenant and create a group called "camunda-admin"

Create few users as well and assign them to "camunda-admin" also assign this group to registered app.

Run you project using command mvn spring-boot:run

http://localhost:8080 will take you to Okta now.

Raise a github issue in case you see some issue.

About

okta implementation using saml2 in camunda 7

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published