{"id":19457283,"url":"https://github.com/shiru99/spring-security","last_synced_at":"2026-06-12T06:04:13.200Z","repository":{"id":85908446,"uuid":"386233543","full_name":"Shiru99/Spring-Security","owner":"Shiru99","description":null,"archived":false,"fork":false,"pushed_at":"2021-07-18T10:24:02.000Z","size":3231,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T01:46:30.140Z","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/Shiru99.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":"2021-07-15T09:24:28.000Z","updated_at":"2021-07-28T08:33:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"7c21b81f-98fd-42f8-b1d7-ecfd557cd996","html_url":"https://github.com/Shiru99/Spring-Security","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shiru99%2FSpring-Security","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shiru99%2FSpring-Security/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shiru99%2FSpring-Security/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shiru99%2FSpring-Security/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shiru99","download_url":"https://codeload.github.com/Shiru99/Spring-Security/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240654183,"owners_count":19835857,"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-11-10T17:20:52.615Z","updated_at":"2026-06-12T06:04:08.177Z","avatar_url":"https://github.com/Shiru99.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring-Security\n\nSpring Security is a Java/Java EE framework that provides authentication, authorization and other security features for enterprise applications. \n\n* Handles common vulnerabilities\n\n    * session fixation\n    * Clickjacking\n    * Click site request forgery\n\n\n* what Spring Security can do :\n\n    * User name/password authentication\n    * SSO/Okta/LDAP\n    * App level Authorization\n    * Intra App Authorization like OAuth\n    * Microservice security (using tokens, JWT)\n\n\n# Basics\n\n1. \u003cb\u003eAuthentication\u003c/b\u003e (Who are you)\n\n    One of the fundamental ways to secure a resource is to make sure that the caller is who they claim to be. This process of checking credentials and making sure that they are genuine is called authentication.\n\n    * knowledge based authentication : Password OR Pin code OR Answer to secret/personal question \n    * Possession based authentication : Phone or Text messages OR Key-cards/Badges OR Access token device\n    * Multi-Factor authentication\n\n2. \u003cb\u003eAuthorization\u003c/b\u003e (Can this user do this)\n\n    Store : Customer vs Store Clerk vs Department Manager vs Manager\n\n3. \u003cb\u003ePrincipal\u003c/b\u003e (Currently logged in user)\n\n    A Principal represents a user's identity. Principal allows us to visit different URLs within same domain with just one-time logging in a session.\n\n4. \u003cb\u003eGrantedAuthority\u003c/b\u003e (permission or a right)\n\n    granting different GrantedAuthorities (permissions) to users \n\n5. \u003cb\u003eRoles\u003c/b\u003e (bunch of permissions)\n\n    Admin vs User\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshiru99%2Fspring-security","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshiru99%2Fspring-security","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshiru99%2Fspring-security/lists"}