{"id":25441961,"url":"https://github.com/jenkinsci/casdoor-auth-plugin","last_synced_at":"2025-11-01T14:30:22.058Z","repository":{"id":64958361,"uuid":"558046802","full_name":"jenkinsci/casdoor-auth-plugin","owner":"jenkinsci","description":"Jenkins authentication / SSO plugin based on Casdoor","archived":false,"fork":false,"pushed_at":"2025-02-14T07:30:18.000Z","size":34,"stargazers_count":2,"open_issues_count":4,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-14T08:29:42.382Z","etag":null,"topics":["auth","cas","casdoor","jenkins","oauth","oidc","plugin","saml","sso"],"latest_commit_sha":null,"homepage":"https://plugins.jenkins.io/casdoor-auth","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jenkinsci.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-26T19:50:42.000Z","updated_at":"2025-02-14T07:29:30.000Z","dependencies_parsed_at":"2024-05-01T07:39:38.670Z","dependency_job_id":"79b7ba58-2ef7-46b3-a878-bb5d5db995fe","html_url":"https://github.com/jenkinsci/casdoor-auth-plugin","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenkinsci%2Fcasdoor-auth-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenkinsci%2Fcasdoor-auth-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenkinsci%2Fcasdoor-auth-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenkinsci%2Fcasdoor-auth-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jenkinsci","download_url":"https://codeload.github.com/jenkinsci/casdoor-auth-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239293947,"owners_count":19615043,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["auth","cas","casdoor","jenkins","oauth","oidc","plugin","saml","sso"],"created_at":"2025-02-17T13:16:10.708Z","updated_at":"2025-11-01T14:30:22.010Z","avatar_url":"https://github.com/jenkinsci.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jenkins-casdoor-auth\n\n## About\n\nThis plugin incorporates SSO in [Jenkins](https://jenkins.io) with [Casdoor](https://casdoor.org/)\n\n## Installation\n\nTODO\n\n## Usage\n\nYou can refer to [Casdoor Official Doc](https://casdoor.org/docs/integration/java/jenkins-plugin/).\n\nThe following are some of the names in the configuration:\n\n`CASDOOR_HOSTNAME`: Domain name or IP where Casdoor server is deployed.\n\n`JENKINS_HOSTNAME`: Domain name or IP where Jenkins is deployed.\n\n\n### Step1. Deploy Casdoor and Jenkins\nFirstly, the [Casdoor](https://casdoor.org/docs/basic/server-installation) and [Jenkins](https://www.jenkins.io/doc/book/installing/) should be deployed.\n\nAfter a successful deployment, you need to ensure:\n1. Set Jenkins URL(Manage Jenkins -\u003e Configure System -\u003e Jenkins Location) to `JENKINS_HOSTNAME`.\n   ![Jenkins URL](https://casdoor.org/assets/images/jenkins_url-9e8f261138a88501bdfce79ee1c1f3fa.png)\n2. Casdoor can be logged in and used normally.\n3. Set Casdoor's `origin` value (conf/app.conf) to `CASDOOR_HOSTNAME`.\n   ![Casdoor conf](https://casdoor.org/assets/images/casdoor_origin-8f5d9e44f6b58828ce69e6e6d896e122.png)\n### Step2. Configure Casdoor application\n1. Create or use an existing Casdoor application.\n2. Add a redirect url: `http://JENKINS_HOSTNAME/securityRealm/finishLogin`\n   ![Casdoor Application Setting](https://casdoor.org/assets/images/appseeting_jenkins-6e0a2968614d0735005951278f44c008.png)\n3. Add provider you want and supplement other settings.\n\nNot surprisingly, you can get two values ​​on the application settings page: `Client ID` and `Client secret` like the picture above, we will use them in next step.\n\nOpen your favorite browser and visit: **http://`CASDOOR_HOSTNAME`/.well-known/openid-configuration**, you will see the OIDC configure of Casdoor.\n\n### Step3. Configure Jenkins\nNow, you can install [Casdoor plugin](https://plugins.jenkins.io/casdoor-auth/) from the plugin manager by searching for \"Casdoor\"\n\nAfter completing the installation, go to Manage Jenkins -\u003e Configure Global Security.\n\n**Suggestion**: Back up the Jenkins `config.xml` file, and use it to recover in case of setup errors.\n\n![Jenkins' Setting](https://casdoor.org/assets/images/jenkins_plugin-e66dcae10b60bbe2b5ac25a804ccf3cd.png)\n\n1. In Security Realm, select \"Casdoor Authentication Plugin\".\n2. In Casdoor Endpoint, specify the `CASDOOR_HOSTNAME` noted above.\n2. In Client ID, specify the `Client ID` noted above.\n3. In Client secret, specify the `Client secret` noted above.\n4. In JWT Public Key, specify the public key used to validate JWT token. You can find the public key in Casdoor by clicking `Cert` at the top. After clicking `edit` your application, you can copy your public key in the following page.\n   ![JWT Public Key](https://casdoor.org/assets/images/jenkins_cert-6ab012c3fd63b5d64bf09f182ae4a9c0.png)\n5. Organization Name and Application Name is optional. You can specify your organization and application to verify users in other organizations and applications. If they are empty, the plugin will use the default organization and application.\n6. In the Authorization section, check “Logged-in users can do anything”. Disable “Allow anonymous read access”.\n7. Click `save`.\n\nNow, Jenkins will automatically redirect you to Casdoor for authentication.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjenkinsci%2Fcasdoor-auth-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjenkinsci%2Fcasdoor-auth-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjenkinsci%2Fcasdoor-auth-plugin/lists"}