{"id":16413880,"url":"https://github.com/celalaygar/spring-boot-security-example-with-h2-database","last_synced_at":"2025-08-02T20:33:36.588Z","repository":{"id":96476592,"uuid":"137412809","full_name":"celalaygar/spring-boot-security-example-with-h2-database","owner":"celalaygar","description":" A small demo project for using Json with  Spring Boot 2, Spring Security, Spring Data, Jpa and H2 Database","archived":false,"fork":false,"pushed_at":"2018-12-25T21:59:55.000Z","size":39,"stargazers_count":3,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-23T04:44:30.317Z","etag":null,"topics":["h2-database","jpa","spring","spring-boot","spring-boot-2","spring-mvc","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/celalaygar.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":"2018-06-14T21:48:56.000Z","updated_at":"2024-12-11T21:23:24.000Z","dependencies_parsed_at":"2023-04-17T13:05:59.046Z","dependency_job_id":null,"html_url":"https://github.com/celalaygar/spring-boot-security-example-with-h2-database","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/celalaygar/spring-boot-security-example-with-h2-database","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/celalaygar%2Fspring-boot-security-example-with-h2-database","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/celalaygar%2Fspring-boot-security-example-with-h2-database/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/celalaygar%2Fspring-boot-security-example-with-h2-database/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/celalaygar%2Fspring-boot-security-example-with-h2-database/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/celalaygar","download_url":"https://codeload.github.com/celalaygar/spring-boot-security-example-with-h2-database/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/celalaygar%2Fspring-boot-security-example-with-h2-database/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268448362,"owners_count":24252019,"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-08-02T02:00:12.353Z","response_time":74,"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":["h2-database","jpa","spring","spring-boot","spring-boot-2","spring-mvc","spring-security"],"created_at":"2024-10-11T06:52:36.343Z","updated_at":"2025-08-02T20:33:36.536Z","avatar_url":"https://github.com/celalaygar.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# springboot-security-with-h2-example\n\nHow to use login process\u003cbr/\u003e\n\nThe application showing how to use Spring Boot with Spring Security for common needs, such as:\n\n* Customized login form\n* DAO-based authentication\n* Basic \"remember me\" authentication\n\nAnybody having ROLE_EDITOR or ROLE_ADMIN can enter links called /rest/** and /actuator/** for `AUTHORIZATION`. Anybody only has ROL_USER can't enter links called /rest/** and /actuator/**\n- `links` -\u003e `localhost:8182/rest/personels`, `localhost:8182/rest/personel/3`, `localhost:8182/rest/personel?fn=Celal`\n- `links` -\u003e `localhost:8182/actuator/health`\n``` \nINSERT INTO USERS VALUES('user1','{noop}12345',TRUE);\nINSERT INTO USERS VALUES('user2','{noop}secrett',TRUE);\nINSERT INTO USERS VALUES('celal','{noop}secret',TRUE);\n``` \nyou can write data below first-three sql queries instead of above sql queris in src/main/resources/data.sql\n```    \nINSERT INTO USERS VALUES('user1','{bcrypt}$2a$10$FMQOTEUiRN1L2MV2gfYas.MEDnLcEffuenRme5WdFgkwcuWA2jyhG',TRUE);\nINSERT INTO USERS VALUES('user2','{bcrypt}$2a$10$.qPu/z1bV0Lw5uSpv6YMKeiCUI4rsxfNY/HJJBgw9E7CYUULMW3CS',TRUE);\nINSERT INTO USERS VALUES('celal','{bcrypt}$2a$10$m9RM8vLgWvu/8Ig21HURG.IHIeFEie8CsKaGV1FeQ88bi27Xz4wJS',TRUE);\n``` \nusername and password will be same again when you changed first-three lines in src/main/resources/data.sql.\u003cbr/\u003e\nfor encrypted data you can look at PasswordEncoderTest.java class in src/test/com/javaegitimleri/ap/test\n\nfor example (encrypted data) \n- `12345` -\u003e `{bcrypt}$2a$10$FMQOTEUiRN1L2MV2gfYas.MEDnLcEffuenRme5WdFgkwcuWA2jyhG`\n- `secrett` -\u003e `{bcrypt}$2a$10$.qPu/z1bV0Lw5uSpv6YMKeiCUI4rsxfNY/HJJBgw9E7CYUULMW3CS`\n- `secret` -\u003e `{bcrypt}$2a$10$m9RM8vLgWvu/8Ig21HURG.IHIeFEie8CsKaGV1FeQ88bi27Xz4wJS`\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcelalaygar%2Fspring-boot-security-example-with-h2-database","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcelalaygar%2Fspring-boot-security-example-with-h2-database","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcelalaygar%2Fspring-boot-security-example-with-h2-database/lists"}