Package io.micronaut.security.session
Interface SessionPopulator<T>
- Type Parameters:
 T- Request
- All Superinterfaces:
 io.micronaut.core.order.Ordered
public interface SessionPopulator<T>
extends io.micronaut.core.order.Ordered
API that allows to populate the session after a successful login. You can create extra beans of type 
SessionPopulator to add extra data to the session.- Since:
 - 4.11.0
 - Author:
 - Sergio del Amo
 
- 
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE - 
Method Summary
Modifier and TypeMethodDescriptionvoidpopulateSession(T request, @NonNull Authentication authentication, @NonNull io.micronaut.session.Session session) Populates the session.Methods inherited from interface io.micronaut.core.order.Ordered
getOrder 
- 
Method Details
- 
populateSession
void populateSession(@NonNull T request, @NonNull @NonNull Authentication authentication, @NonNull @NonNull io.micronaut.session.Session session) Populates the session.- Parameters:
 request- The requestauthentication- The authenticated user.session- The session
 
 -