{"id":20911409,"url":"https://github.com/kedarkamthe/spring-authentication-by-example","last_synced_at":"2026-04-28T15:38:45.412Z","repository":{"id":253064503,"uuid":"842348688","full_name":"kedarkamthe/spring-authentication-by-example","owner":"kedarkamthe","description":"This project explores various methods of implementing authentication using Spring Security.","archived":false,"fork":false,"pushed_at":"2024-08-19T05:13:29.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-27T15:05:18.909Z","etag":null,"topics":["basic-authentication","jwt-authentication","oauth2","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/kedarkamthe.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-08-14T07:03:50.000Z","updated_at":"2024-08-19T05:13:31.000Z","dependencies_parsed_at":"2024-08-16T18:30:17.962Z","dependency_job_id":null,"html_url":"https://github.com/kedarkamthe/spring-authentication-by-example","commit_stats":null,"previous_names":["kedarkamthe/spring-authentication-by-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kedarkamthe/spring-authentication-by-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kedarkamthe%2Fspring-authentication-by-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kedarkamthe%2Fspring-authentication-by-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kedarkamthe%2Fspring-authentication-by-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kedarkamthe%2Fspring-authentication-by-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kedarkamthe","download_url":"https://codeload.github.com/kedarkamthe/spring-authentication-by-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kedarkamthe%2Fspring-authentication-by-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262279100,"owners_count":23286547,"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":["basic-authentication","jwt-authentication","oauth2","spring-boot","spring-security"],"created_at":"2024-11-18T14:21:24.943Z","updated_at":"2026-04-28T15:38:40.390Z","avatar_url":"https://github.com/kedarkamthe.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Understanding spring security By example\n\u003c!-- TOC --\u003e\n* [Understanding spring security By example](#understanding-spring-security-by-example)\n  * [Learning](#learning-)\n  * [Data Setup](#data-setup-)\n\u003c!-- TOC --\u003e\n## Learning \n\n1. By default, when we add spring security to our project,\n    It adds a user with username as `user` and password would be printed as **default password**  in console when application starts\n   **Note**: to see the default password on console you need to set log level in application.yaml \n   for below spring package`logging.level.org.springframework.security: INFO`\n2. Add username and password to `application.yml` and add `.httpBasic(Customizer.withDefaults())` in `SecurityFilterChain` bean. \n   With this change you will be able to `login` with `username/password` provided in `application.yml`\n3. Added `oAuth2 client` support with `Keycloak` using reference [here](https://developers.redhat.com/articles/2023/07/24/how-integrate-spring-boot-3-spring-security-and-keycloak)\n4. Added `Jwt based authentication`g for `/greet` api present in Postman collection using `KeyCloak` as resource server used reference [here](https://www.baeldung.com/spring-boot-keycloak)\n\n\n\n## Data Setup \n1. Import realm in `/setup` folder in keycloak\n2. Create user in realm imported in step-1","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkedarkamthe%2Fspring-authentication-by-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkedarkamthe%2Fspring-authentication-by-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkedarkamthe%2Fspring-authentication-by-example/lists"}