Spring Security Custom User Detail Service

From NovaOrdis Knowledge Base
Revision as of 20:05, 10 November 2018 by Ovidiu (talk | contribs) (→‎Overview)
Jump to navigation Jump to search

Internal

Overview

This approach is useful for the situation in which the user information should be part of the application's domain model.

Combining application authentication and authorization with domain model user information largely consists in the following steps:

  • Declare a User entity that should implement the Spring UserDetails interface.

Playground Example

Playground - Spring Security - User Detail Service