Skip to main content

Using the miniOrange Plugin

This tutorial explains how to use miniOrange to connect casdoor and Jira.

Casdoor can use the OIDC protocol as the IDP to connect various applications. You can refer to this Jira tutorial for more information.

The following are some important names in the configuration:

CASDOOR_HOSTNAME: The domain name or IP where the Casdoor server is deployed.

Jira_HOSTNAME: The domain name or IP where Jira is deployed.

Step 1: Deploy Casdoor and Jira

Firstly, deploy Casdoor and Jira.

After successful deployment, make sure:

  1. Set Jira URL (Plans -> Administration -> System -> General Configuration) to Jira_HOSTNAME. Jira URL
  2. Casdoor can be logged in and used normally.
  3. You can set CASDOOR_HOSTNAME to http://localhost:8000 when deploying Casdoor in prod mode. See production mode.

Step 2: Configure Casdoor Application and Jira

  1. Create a new Casdoor application or use an existing one.
  2. Install the miniOrange app to support OAuth. You can find this app in Plans->Administration->Find new apps->search Jira App
  3. Set Selected Application to Custom OpenId.
  4. Find the redirect URL: Jira Callback
  5. Add the redirect URL: Jira Application
  6. Configure the app as follows: Jira Config
    • Token server URL: http://CASDOOR_HOSTNAME/api/login/oauth/access_token
    • Authorization server URL: http://CASDOOR_HOSTNAME/login/oauth/authorize
    • UserInfo server URL: http://CASDOOR_HOSTNAME/api/get-account
    • Scopes: address phone openid profile offline_access email

Open your favorite browser and visit: http://CASDOOR_HOSTNAME/.well-known/openid-configuration. You will see the OIDC configuration of Casdoor.

Log out of Jira and test SSO. Jira Login