Why Spring Security?
Handles common vulnerabilities
What Spring Security can do?
- User name / password authentication
- SSO / Okta / LDAP
- App level Authorization
- Intra App Authorization like OAth
- Microservice security (using tokens, JWT)
- Method level security
5 Core Concepts in Spring Security:
- Authentication : who is this user?
- Authorization : Are they allowed to do this?
- Principal
- Granted Authority
- Roles
Spring Security default behavior:
- Adds mandatory authentication for URLs
- Adds login form
- Handles login error
- Creates a user and sets a default password
- Spring security generates a new password each time you start the app
How to configure authentication in spring security:
- Step 1: Get hold of AuthenticationManagerBuilder
- Step 2: Set the configuration on it
No comments:
Post a Comment