{"id":37027759,"url":"https://github.com/movewp3/microservice-security-autoconfiguration","last_synced_at":"2026-01-14T03:18:20.432Z","repository":{"id":43175967,"uuid":"244600795","full_name":"movewp3/microservice-security-autoconfiguration","owner":"movewp3","description":"A library to abstract away the details to enable a Spring-Boot-based microservice to support authentication (via OpenID Connect / OAuth2).","archived":false,"fork":false,"pushed_at":"2025-03-03T10:16:27.000Z","size":135,"stargazers_count":8,"open_issues_count":0,"forks_count":6,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-07-18T12:00:27.453Z","etag":null,"topics":["microservice","security","spring"],"latest_commit_sha":null,"homepage":"","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/movewp3.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":"2020-03-03T09:58:55.000Z","updated_at":"2025-03-03T09:29:32.000Z","dependencies_parsed_at":"2025-03-03T10:36:58.076Z","dependency_job_id":null,"html_url":"https://github.com/movewp3/microservice-security-autoconfiguration","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/movewp3/microservice-security-autoconfiguration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/movewp3%2Fmicroservice-security-autoconfiguration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/movewp3%2Fmicroservice-security-autoconfiguration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/movewp3%2Fmicroservice-security-autoconfiguration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/movewp3%2Fmicroservice-security-autoconfiguration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/movewp3","download_url":"https://codeload.github.com/movewp3/microservice-security-autoconfiguration/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/movewp3%2Fmicroservice-security-autoconfiguration/sbom","scorecard":{"id":661686,"data":{"date":"2025-08-11","repo":{"name":"github.com/movewp3/microservice-security-autoconfiguration","commit":"1cfab7950da42f8b642f816ad06c504dad2cd1f6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.7,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"Code-Review","score":6,"reason":"Found 8/12 approved changesets -- score normalized to 6","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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1","Warn: no topLevel permission defined: .github/workflows/release.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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/movewp3/microservice-security-autoconfiguration/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/movewp3/microservice-security-autoconfiguration/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/movewp3/microservice-security-autoconfiguration/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/movewp3/microservice-security-autoconfiguration/release.yml/main?enable=pin","Info:   0 out of   4 GitHub-owned 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":"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":"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:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/release.yml:9"],"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":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 27 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-xwmg-2g98-w7v9"],"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-21T16:24:06.023Z","repository_id":43175967,"created_at":"2025-08-21T16:24:06.023Z","updated_at":"2025-08-21T16:24:06.023Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408824,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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":["microservice","security","spring"],"created_at":"2026-01-14T03:18:19.935Z","updated_at":"2026-01-14T03:18:20.424Z","avatar_url":"https://github.com/movewp3.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dwpbank MoveWP3 Microservice Security Autoconfiguration\n\n[![Java CI](https://github.com/movewp3/microservice-security-autoconfiguration/actions/workflows/build.yml/badge.svg)](https://github.com/movewp3/microservice-security-autoconfiguration/actions/workflows/build.yml) [![Maven Central](https://img.shields.io/maven-central/v/io.dwpbank.movewp3/microservice-security-autoconfiguration)](https://search.maven.org/artifact/io.dwpbank.movewp3/microservice-security-autoconfiguration)\n\nA Spring-Security-based library providing a no-frills approach to enable the verification of HTTP/REST authentication via OpenID Connect and\nconsumption of other OAuth2-protected services for a microservice.\nIn accordance with the stateless REST approach, session management and CSRF tokens are disabled.\n\n## Usage\n\nTo make use if this starter, add the following dependency to your POM;\n\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.dwpbank.movewp3\u003c/groupId\u003e\n    \u003cartifactId\u003emicroservice-security-autoconfiguration\u003c/artifactId\u003e\n    \u003cversion\u003e${movewp3-microservice-security-autoconfiguration.version}\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Server\n\nTo enable OAuth2/OpenID-Connect-based protection for your resource server, make sure to set the property\n`spring.security.oauth2.resourceserver.jwt.jwk-set-uri`. We recommend that you test proper authentication handling from within your unit\ntests. For an example, refer to `WebSecurityConfigTest`.\n\nThe `/actuator/*` endpoints are currently exempt from authentication by default. You can override this default by setting the property\n`io.dwpbank.movewp3.microservice.security.allowlist` to a comma-separated list of endpoints to expose without the need to authenticate,\ni.e.:\n\n```\nio.dwpbank.movewp3.microservice.security.allowlist=/foo/**,/bar/**\n```\n\nIf required, the OAuth 2.0 Resource Server can be customized via an optional Bean \"oauth2AuthenticationEntryPoint\" of type\norg.springframework.security.web.AuthenticationEntryPoint.\n\n```java\n\n@Bean\nAuthenticationEntryPoint oauth2AuthenticationEntryPoint() {\n  return new AuthenticationEntryPoint() {\n    // TODO - implementation required\n  };\n}\n```\n\n### Client\n\nTo add OAuth2 support to `WebClient`, configure an OAuth2 client registration as outlined in\nthe [Spring Security documentation](https://docs.spring.io/spring-security/site/docs/5.3.2.RELEASE/reference/html5/#webflux-oauth2-login-sample-config).\nIf your registration is not named \"default\", additionally set the property\n`iio.dwpbank.movewp3.microservice.security.default-oauth2-client-registration-id` to the ID of your client registration. Last, but not\nleast, annotate the `WebClient.Builder` to be injected with the `@OAuth2Aware` qualifier, such as in the following example:\n\n```\n@Autowired\n@OAuth2Aware\nprivate WebClient.Builder webClientBuilder;\n```\n\nMake sure to only submit requests via `WebClient`s created via this builder for which you are ok with the OAuth2 access token being added as\nbearer token HTTP authorization header.\n\n## Contributing\n\nPull requests are welcome. In order to make sure that your change can be easily merged, please follow these steps:\n\n* Develop your changes in a feature branch named `feature/...`\n* Base your feature branch on `main`\n* Open your pull request against `main`\n* Don't forget to implement tests\n\nIn case of any questions, feel open an issue in this project to discuss intended changes upfront.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmovewp3%2Fmicroservice-security-autoconfiguration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmovewp3%2Fmicroservice-security-autoconfiguration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmovewp3%2Fmicroservice-security-autoconfiguration/lists"}