{"id":17960144,"url":"https://github.com/christophe-ch/bddsecurityspringtest","last_synced_at":"2026-04-14T04:02:03.930Z","repository":{"id":70712686,"uuid":"148608768","full_name":"Christophe-Ch/BddSecuritySpringTest","owner":"Christophe-Ch","description":"Basic application using spring security","archived":false,"fork":false,"pushed_at":"2018-09-13T12:39:07.000Z","size":1361,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-28T16:49:16.888Z","etag":null,"topics":["spring","spring-boot","spring-mvc","spring-security","typed-js"],"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/Christophe-Ch.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-09-13T08:42:24.000Z","updated_at":"2018-09-13T19:31:11.000Z","dependencies_parsed_at":"2023-04-27T20:01:35.304Z","dependency_job_id":null,"html_url":"https://github.com/Christophe-Ch/BddSecuritySpringTest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Christophe-Ch/BddSecuritySpringTest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Christophe-Ch%2FBddSecuritySpringTest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Christophe-Ch%2FBddSecuritySpringTest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Christophe-Ch%2FBddSecuritySpringTest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Christophe-Ch%2FBddSecuritySpringTest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Christophe-Ch","download_url":"https://codeload.github.com/Christophe-Ch/BddSecuritySpringTest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Christophe-Ch%2FBddSecuritySpringTest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31781292,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: 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":["spring","spring-boot","spring-mvc","spring-security","typed-js"],"created_at":"2024-10-29T11:05:19.067Z","updated_at":"2026-04-14T04:02:03.893Z","avatar_url":"https://github.com/Christophe-Ch.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bdd Security Spring Test\n\n## Description\nThis application has only been made for learning and training purposes.\\\nIt provides a login and a register form, and also a basic profile page.\\\nA /admin route has been defined in the security configuration file but there is no associated page yet.\n\n## Configuration\n**This project was made using IntelliJ IDEA Ultimate Edition, and so will be the configuration described right under.**\n\nAs this application will probably not be updated that much, downloading it as a zip is possible.\n\n### Import\n\nThe first thing to do is to import the project into IntelliJ. You have to import it as a gradle application.\n\n### Startup configuration :wrench:\n\nAdd a new configuration for this project:\n- You can name it \"Launch application\" for example\n- The main class is `fr.learning.bdd_security.BddSecurityApplication`\n- Set `On 'Update' action` to `Update classes and resources`\n- Set `On frame deactivation` to `Update classes and resources`\n\nIf you want to add a new properties file:\n- Name it application-*dev*.properties\n- Specify `dev` in *Active profiles*\n\n\n### Database :card_file_box:\n\nThis application uses **MySQL** to store the **users and the roles**.\\\nEverything about the **credentials or the database itself** is mentioned in the *application.properties* file.\\\nFirst create a new database called *bdd_security*.\\\nThen, you'll need to create **three tables**. [This gist](https://gist.github.com/ChriisX/057178f3041a6bfa5d0d1b7840043c92) provides the **sql queries that creates your tables**.\\\nYou also have to add the following foreign key constraints on the *Role_User* table:\n- id_user -\u003e user.username\n- id_role -\u003e role.id\n\nYou may want to add some roles before trying the application. The only ones required are:\n- ADMIN\n- USER\n\n(uppercase required at least for the **admin** which is used in the *SecurityConfiguration* file)\n\nYour database is ready!\\\n\\\nIf before launching your application you want to add some accounts, here are the steps you need to follow. Keep in mind that there is a register form inside of the application (it's easier to use actually).\\\n- Add a new user on the **user table**. Because the passwords stored in the database are encrypted, here is an encrypted sample: `$2a$10$QNwf0roPwEoqpkDK7EWP/uhF0Ow1PhMopJVcUPU.6hpqffAUlhEoW` stands for `password`\n- Add a new entry on the **role_user table** if you want to give your new user a role!\n\n\n## Launching in 3... 2... 1... :rocket:\n\nYou are now ready!\\\nLaunch the application using the configuration you made.\\\nIf I forgot anything, or something doesn't work, please tell me so I can fix the **readme**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristophe-ch%2Fbddsecurityspringtest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchristophe-ch%2Fbddsecurityspringtest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristophe-ch%2Fbddsecurityspringtest/lists"}