Authentication starter
Purpose
This starter is used to retrieve current user properties regardless of the authentication management.
Configuration
Add starter dependency to your POM (version depends on the REGARDS BOM)
<dependency>
<groupId>fr.cnes.regards.framework</groupId>
<artifactId>authentication-regards-starter</artifactId>
</dependency>
Business dependency
<dependency>
<groupId>fr.cnes.regards.framework</groupId>
<artifactId>authentication-regards</artifactId>
</dependency>
Dependency :
- None
Used by :
Autoconfiguration
Starter autoconfigures beans unless it already exists :
IAuthenticationResolverto retrieve current user and role at runtime,
danger
In production, the implementation of IAuthenticationResolver must be thread safe.
How to
How to use
Just inject bean in your component.
How to override default behaviour
Create your own IAuthenticationResolver bean to implement your own authentication info retrieval.