November 2017
Intermediate to advanced
542 pages
14h 24m
English
The application provided in Chapter 1, Anatomy of an Unsafe Application, provides a mechanism for creating a new CalendarUser object, so it should be fairly trivial to create our CalendarUser object after a user signs up. However, Spring Security has no knowledge of CalendarUser. This means that we will need to add a new user in Spring Security too. Don't worry, we will remove the need for the dual maintenance of users later in this chapter.
Spring Security provides an o.s.s.provisioning.UserDetailsManager interface for managing users. Remember our in-memory Spring Security configuration?
auth.inMemoryAuthentication(). withUser("user").password("user").roles("USER");
The .inMemoryAuthentication() method ...
Read now
Unlock full access