What is spring boot two way SSL?
- Both server and client Trust each other certificate.
- Both server and client validate each other Certificate.
- Server send certificate to client and client also has to send required certificate to server, then only handshake happens.
- Add certificate to client, JDK key store and verify user.
How are we managing security in our applications?
- We can use LDAP based or OAuth based authentication.
- We are using Bearer token with Correlation ID
- For role based We are using spring security roles based on access lists.
- For Custom Authentication, we can use annotation based security.
How do we provide role based access control using Spring Security?
- Provide implementation of User details interface
- Provide implementation of user detail service interface
- Provide configuration in a class that extends WebSecurityConfigurer Adapter
- In user details interface Grant authorities in the getauthorities method.
No comments:
Post a Comment