Subject contains the user information in our request.
Sureness has built-in PasswordSubject
based on account password, JwtSubject
based on jwt, etc.
Of course, we can customize the subject we need to expand our user information.
Before customization, it is recommended to understand the sureness's process and the extended interface provided, see Advanced Extension for details.
-Subject
: Authentication and authorization object interface, providing access to the object's account info, requesting resources, roles and other information.
Customizing the subject requires the following process:
Implment Subject, add custom subject content
Implment SubjectCreate to create custom subject
, see Custom SubjectCreatorImplment Processor to support custom subject
, see Custom Processor
Detail please refer to Sureness integration springboot sample(database scheme)