{"id":14989873,"url":"https://github.com/entur/jwt-resource-server","last_synced_at":"2025-10-20T11:22:57.774Z","repository":{"id":39795856,"uuid":"214162102","full_name":"entur/jwt-resource-server","owner":"entur","description":"OpenID: Client, server and unit-testing support for machine-to-machine calls using access-tokens.","archived":false,"fork":false,"pushed_at":"2025-10-16T20:24:45.000Z","size":1803,"stargazers_count":46,"open_issues_count":0,"forks_count":4,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-10-20T07:58:43.604Z","etag":null,"topics":["auth0","caching","java","json-web-token","junit5","jwt","openid","openid-connect","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"eupl-1.2","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/entur.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-10-10T11:14:01.000Z","updated_at":"2025-10-16T20:24:23.000Z","dependencies_parsed_at":"2023-02-17T19:46:05.162Z","dependency_job_id":"fba85df8-495c-4fa9-8504-d596b08db3b4","html_url":"https://github.com/entur/jwt-resource-server","commit_stats":null,"previous_names":[],"tags_count":82,"template":false,"template_full_name":null,"purl":"pkg:github/entur/jwt-resource-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entur%2Fjwt-resource-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entur%2Fjwt-resource-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entur%2Fjwt-resource-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entur%2Fjwt-resource-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/entur","download_url":"https://codeload.github.com/entur/jwt-resource-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/entur%2Fjwt-resource-server/sbom","scorecard":{"id":378332,"data":{"date":"2025-08-11","repo":{"name":"github.com/entur/jwt-resource-server","commit":"a84965640be80c37855a687a8a826660eb3e8e02"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.4,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 1/21 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":10,"reason":"29 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/deploy-manual.yml:1","Warn: no topLevel permission defined: .github/workflows/master-verify.yml:1","Warn: no topLevel permission defined: .github/workflows/pr-verify.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy-manual.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/entur/jwt-resource-server/deploy-manual.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy-manual.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/entur/jwt-resource-server/deploy-manual.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy-manual.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/entur/jwt-resource-server/deploy-manual.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/master-verify.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/entur/jwt-resource-server/master-verify.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/master-verify.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/entur/jwt-resource-server/master-verify.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/master-verify.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/entur/jwt-resource-server/master-verify.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-verify.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/entur/jwt-resource-server/pr-verify.yml/master?enable=pin","Info:   0 out of   7 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: European Union Public License 1.2: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact release-5.1.3 not signed: https://api.github.com/repos/entur/jwt-resource-server/releases/226706813","Warn: release artifact release-5.1.3 does not have provenance: https://api.github.com/repos/entur/jwt-resource-server/releases/226706813"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":9,"reason":"SAST tool is not run on all commits -- score normalized to 9","details":["Warn: 12 commits out of 13 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-6r3c-xf4w-jxjm"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T14:46:53.125Z","repository_id":39795856,"created_at":"2025-08-18T14:46:53.125Z","updated_at":"2025-08-18T14:46:53.125Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280081683,"owners_count":26268602,"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","status":"online","status_checked_at":"2025-10-20T02:00:06.978Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["auth0","caching","java","json-web-token","junit5","jwt","openid","openid-connect","spring-boot"],"created_at":"2024-09-24T14:19:03.567Z","updated_at":"2025-10-20T11:22:57.749Z","avatar_url":"https://github.com/entur.png","language":"Java","funding_links":[],"categories":["安全"],"sub_categories":[],"readme":"[![Maven Central](https://img.shields.io/maven-central/v/org.entur.jwt-rs/parent.svg)](https://mvnrepository.com/artifact/org.entur.jwt-rs)\n\n# jwt-resource-server\n\nTools for synchronous (servlet-based) __OpenID resource servers__ relying on use of [Access Tokens]([https://auth0.com/docs/tokens/access-tokens](https://auth0.com/docs/tokens/access-tokens)) for authorization. These come in the form of JSON Web Tokens (JWT) issued by Authorization Servers like Auth0 and Keycloak. Authorization Servers __sign JWTs__ with private keys, resource servers then download the corresponding public keys from the Authorization Servers and __validate the JWTs__ by verifying the signature.\n\n## Primer\nTechnically, this library deals with HTTP requests using the __Authorization__ header. Example HTTP request:\n\n``` \nGET /some/restricted/service/1\nAccept: application/json\nAuthorization: Bearer eyJhbGciOiJIUzI1NiIsI.eyJzdWIIjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpM\n```\nwhere the __Base64-encoded value__ is the token itself. For a valid token, the server could process the request and respond:\n\n```\nHTTP/1.1 200 OK\nContent-Type: application/json\nContent-Length: 1024\n```\n\nAlternatively, the server might return __HTTP 401 Unauthorized__ if the token was not accepted, or __HTTP 403 Forbidden__ if the token did not contain the enough permissions. \n\n## Overview\nUsers of this library will benefit from:\n\n * Robust multi-tenant JWT [access-token validation](jwt-server)\n * Robust JWT [access-token client](jwt-client)\n * Flexible JWT [JUnit 5 test-support](jwt-test)\n * [Spring Boot support](jwt-server) for the above\n\nIn order to keep complexity (and risk) down, the library wraps existing third party libraries for low-level parsing, signature validation and authorization enforcement. Notable features:\n\n * thread-safe sharing of keys (for signature verification) and access-tokens within each JVM\n * proactive background refresh of keys and tokens\n * keys and token health status (on last remote invocation)\n * annotation-based token mocking with test method signature argument support\n * open/closed endpoint filter, so that requests to closed endpoints can be proactively rejected before payload is unmarshalled\n\nAsync is not yet supported.\n\n## Project structure\n\n * [jwt-server] - for handling incoming service calls (i.e. in your backend)\n * [jwt-client] - for making outgoing service calls (i.e. support for obtaining a token first)\n * [jwt-test] - JUnit 5 test support.\n * [examples] - Example projects.\n\nSee documentation contained in each folder to get started. Or skip right to the [examples](examples). \n\n# License\n[European Union Public Licence v1.2](https://eupl.eu/).\n\n[jwk]:                    jwt-server/jwk\n[jwt-verifier]:           jwt-server/jwk-verifier\n[jwt-server]:             jwt-server\n[jwt-client]:             jwt-client\n[jwt-test]:               jwt-test\n[java-jwt]:               https://github.com/auth0/java-jwt\n[examples]:               examples\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fentur%2Fjwt-resource-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fentur%2Fjwt-resource-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fentur%2Fjwt-resource-server/lists"}