{"id":23789804,"url":"https://github.com/officiallysingh/spring-boot-web-auth-demo","last_synced_at":"2026-05-16T09:33:19.822Z","repository":{"id":238099051,"uuid":"795851093","full_name":"officiallysingh/spring-boot-web-auth-demo","owner":"officiallysingh","description":"Demo Spring Boot project using Spring security for Authorization","archived":false,"fork":false,"pushed_at":"2024-05-06T13:36:41.000Z","size":81,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-21T12:43:17.873Z","etag":null,"topics":["authorization","jwt-token","oauth2-resource-server","spring-boot","spring-security"],"latest_commit_sha":null,"homepage":"","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/officiallysingh.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-05-04T08:38:30.000Z","updated_at":"2024-05-06T13:36:44.000Z","dependencies_parsed_at":"2024-05-06T10:29:51.199Z","dependency_job_id":"c8b47d75-217d-47e9-a7e0-ff3e3e997203","html_url":"https://github.com/officiallysingh/spring-boot-web-auth-demo","commit_stats":null,"previous_names":["officiallysingh/spring-boot-web-auth-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/officiallysingh/spring-boot-web-auth-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/officiallysingh%2Fspring-boot-web-auth-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/officiallysingh%2Fspring-boot-web-auth-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/officiallysingh%2Fspring-boot-web-auth-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/officiallysingh%2Fspring-boot-web-auth-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/officiallysingh","download_url":"https://codeload.github.com/officiallysingh/spring-boot-web-auth-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/officiallysingh%2Fspring-boot-web-auth-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33096900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["authorization","jwt-token","oauth2-resource-server","spring-boot","spring-security"],"created_at":"2025-01-01T17:16:47.275Z","updated_at":"2026-05-16T09:33:19.818Z","avatar_url":"https://github.com/officiallysingh.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Run\nRun the main class [`SpringBootWebAuthApplication`](src/main/java/com/ksoot/web/auth/SpringBootWebAuthApplication.java), it startes the server at 8081 port.  \nNow access Swagger [`Swagger`](http://localhost:8081/swagger-ui.html) at http://localhost:8081/swagger-ui.html\n\nSelect `Application` from dropdown **Select a definition**\n\n* **Actuator** APIs, configured as unsecured in [`SecurityConfiguration`](src/main/java/com/ksoot/web/auth/security/SecurityConfiguration.java).\n* **Api** Demo secured APIs.\n\n**Click on Authorize button** to pass the JWT Token. Use any valid JWT Token.\n```\neyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\n```\n\n## Authorization\n* This service assumes that the request is already Authenticated.  \n* It has no knowledge of Authorization server (Azure AD, Keycloak or any other).\n* It expects JWT Bearer token in `Authorization` herder and performs basic validations on it like if it's a valid token or not.\n* Any kind of Authorization logic can be implemented in this service either in [`SecurityConfiguration`](src/main/java/com/ksoot/web/auth/security/SecurityConfiguration.java) or on Controller methods using `@PreAuthorize` (Spring security annotation)\n* Any detail can be extracted from JWT Token using utility class [`IdentityHelper`](src/main/java/com/ksoot/web/auth/security/IdentityHelper.java)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fofficiallysingh%2Fspring-boot-web-auth-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fofficiallysingh%2Fspring-boot-web-auth-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fofficiallysingh%2Fspring-boot-web-auth-demo/lists"}