{"id":16541254,"url":"https://github.com/itzg/try-oauth2-validate-aud","last_synced_at":"2025-06-17T00:36:49.567Z","repository":{"id":145318089,"uuid":"260788873","full_name":"itzg/try-oauth2-validate-aud","owner":"itzg","description":null,"archived":false,"fork":false,"pushed_at":"2020-05-02T22:49:48.000Z","size":55,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-04T04:41:46.591Z","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/itzg.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":"2020-05-02T22:48:02.000Z","updated_at":"2020-05-05T02:31:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"12eeb48b-f6a5-48aa-a13c-dc13dba5fcb7","html_url":"https://github.com/itzg/try-oauth2-validate-aud","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/itzg/try-oauth2-validate-aud","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzg%2Ftry-oauth2-validate-aud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzg%2Ftry-oauth2-validate-aud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzg%2Ftry-oauth2-validate-aud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzg%2Ftry-oauth2-validate-aud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itzg","download_url":"https://codeload.github.com/itzg/try-oauth2-validate-aud/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzg%2Ftry-oauth2-validate-aud/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260268632,"owners_count":22983601,"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":[],"created_at":"2024-10-11T18:54:30.983Z","updated_at":"2025-06-17T00:36:49.512Z","avatar_url":"https://github.com/itzg.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"This project tries out [customizing the Spring Security OAuth2 JWT validator](https://docs.spring.io/spring-security/site/docs/current/reference/html5/#oauth2resourceserver-jwt-validation-custom). \n\nSpecifically, it customizes\n- The choice of RS256 or HS256, where Spring Boot resource servers [by default only support RS256](https://docs.spring.io/spring-security/site/docs/current/reference/html5/#oauth2resourceserver-jwt-decoder-algorithm)\n- Validation of the JWT token to include validation an expected audience value\n\nThe bulk of the code is in `JwtConfig` which uses the properties bean `ApiSecurityProperties`. It supports both RS256 and HS256 signing algorithms.\n\nFor RS256 the properties need to be\n- `api.security.signing-algorithm=rs256`\n- `api.security.issuer-uri=...`\n- `api.security.audience=...`\n- optionally `api.security.jwkSetUri`, if not specified \".well-known/jwks.json\" is appended to `issuer-uri`\n\nFor HS256 the properties need to be\n- `api.security.signing-algorithm=hs256`\n- `api.security.issuer-uri=...`\n- `api.security.audience=...`\n- `api.security.key=...`\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitzg%2Ftry-oauth2-validate-aud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitzg%2Ftry-oauth2-validate-aud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitzg%2Ftry-oauth2-validate-aud/lists"}