{"id":22819642,"url":"https://github.com/miniorangedev/miniorange-java-jwt-authentication-example-app","last_synced_at":"2026-01-29T13:49:42.827Z","repository":{"id":263112179,"uuid":"863899192","full_name":"miniOrangeDev/miniorange-java-jwt-authentication-example-app","owner":"miniOrangeDev","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-16T08:54:55.000Z","size":5346,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-05T20:04:38.115Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/miniOrangeDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-09-27T06:00:21.000Z","updated_at":"2024-11-16T08:54:59.000Z","dependencies_parsed_at":"2024-11-16T09:24:57.439Z","dependency_job_id":"b490df6e-7a3c-4665-8d13-5720c52197dc","html_url":"https://github.com/miniOrangeDev/miniorange-java-jwt-authentication-example-app","commit_stats":null,"previous_names":["miniorangedev/miniorange-java-jwt-authentication-example-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/miniOrangeDev/miniorange-java-jwt-authentication-example-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniOrangeDev%2Fminiorange-java-jwt-authentication-example-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniOrangeDev%2Fminiorange-java-jwt-authentication-example-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniOrangeDev%2Fminiorange-java-jwt-authentication-example-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniOrangeDev%2Fminiorange-java-jwt-authentication-example-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miniOrangeDev","download_url":"https://codeload.github.com/miniOrangeDev/miniorange-java-jwt-authentication-example-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniOrangeDev%2Fminiorange-java-jwt-authentication-example-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28878830,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T10:31:27.438Z","status":"ssl_error","status_checked_at":"2026-01-29T10:31:01.017Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-12-12T15:13:39.141Z","updated_at":"2026-01-29T13:49:42.789Z","avatar_url":"https://github.com/miniOrangeDev.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Java Web Application with miniOrange JWT Authentication\nThis guide provides step-by-step instructions for setting up and running a Java web application with JWT authentication using miniOrange as the Identity Provider.\n\n# Installation\n\nIn the project directory, run the following command to install the necessary dependencies:\n\n### `mvn install`\n\nThis will compile your code and install the required dependencies.\n\n## Configure MiniOrange\n\n### 1. Create a JAVA JWT Application in the miniOrange Dashboard.\n\nVisit the [miniOrange Dashboard](https://login.xecurify.com) and create a new Java JWT Application. If you don’t already have an account with miniOrange, you can [sign up for a free trial](https://www.miniorange.com/businessfreetrial).\n\n### 2. Configure Your Java Application\n\nIf you're using an existing Java JWT application, make sure the following settings are properly configured:\n\n- **Redirect URL**: `http://localhost:8080/sso?action=callback`\n- **Logout URL**: `http://localhost:8080/`\n\nThese URLs should match the actual URLs where your Java application is running.\n\n### 3. Set miniOrange as the Primary Identity Provider\n\n- Navigate to the \"Primary Identity Provider\" section in the miniOrange dashboard.\n- Set **miniOrange** as the primary Identity Provider and click **Save**.\n\n### 4. Download the RSA256 Certificate\n\n- Go to **Apps**, and from the dropdown next to your configured Java JWT App, click **Select**.\n- Click on **Certificate** to download the RSA256 certificate.\n- \u003cimg src=\"https://www.miniorange.com/images/java-jwt-sso/java-jwt-sso-certificate.webp\" alt=\"Java JWT SSO\" width=\"500\" /\u003e\n- Place the downloaded certificate in the `lib` folder of your miniorange-java-jwt-authentication-example-app.\n- Keep the file name as `RSA256Cert.crt`.\n\n### 5. Set Up Endpoints\n\n- Click **Edit** from the dropdown next to your java jwt app in the miniOrange dashboard.\n- Scroll down to the **Endpoints** section.\n- As miniOrange is the primary Identity Provider, copy the **SSO URL for using miniOrange as Authentication Source** provided in the Endpoints section.\n- In your application's `config.properties` file, update the `authorizationUrl` field with the copied SSO URL.\n\n### 7. Configure Single Logout (SLO) URL\n\n- Copy the **Single Logout URL** from the Endpoints section.\n- Paste the copied url in `logoutUrl` field in `config.properties`.\n\n### 8. Create a User in miniOrange\n\nIf you haven't already done so, create a user in the miniOrange dashboard. This user will be used to authenticate against your Java JWT application.\n\n### 9. Run the Application\n\n- Start your application by running it in your IDE or via the command line using `mvn tomcat7:run`.\n- Open your browser and navigate to `http://localhost:8080/demoapplication`. The application should now be running.\n\n### 10. Test the Login\n- Open a private/incognito window in your browser.\n- Visit the following URL `http://localhost:8080`.\n- This will redirect you to home page. Click on **Login with miniOrange** button.\n- This will redirect you to miniOrange login page.\n- Enter your miniOrange user credentials. Upon successful authentication, you'll be logged into your Java JWT application.\n\n### Troubleshooting\n- `Invalid Redirect URL` : Ensure that the redirect URL in your miniOrange dashboard matches the URL configured in your Java application.\n- `Login Fails` : Double-check that the user credentials you are using are correct and that the user exists in miniOrange.\n- `Certificate Issues` : Ensure that the certificate file is placed in the correct location and that the file name is correct (RSA256Cert.crt).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminiorangedev%2Fminiorange-java-jwt-authentication-example-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminiorangedev%2Fminiorange-java-jwt-authentication-example-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminiorangedev%2Fminiorange-java-jwt-authentication-example-app/lists"}