Class DefaultContextAuthenticationMapper
- java.lang.Object
-
- io.micronaut.configuration.security.ldap.DefaultContextAuthenticationMapper
-
- All Implemented Interfaces:
ContextAuthenticationMapper
@Singleton public class DefaultContextAuthenticationMapper extends java.lang.Object implements ContextAuthenticationMapper
The default implementation to create anAuthenticationResponse
from a successful ldap authentication result.- Since:
- 1.0
- Author:
- James Kleeh
-
-
Constructor Summary
Constructors Constructor Description DefaultContextAuthenticationMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticationResponse
map(io.micronaut.core.convert.value.ConvertibleValues<java.lang.Object> attributes, java.lang.String username, java.util.Set<java.lang.String> groups)
-
-
-
Method Detail
-
map
public AuthenticationResponse map(io.micronaut.core.convert.value.ConvertibleValues<java.lang.Object> attributes, java.lang.String username, java.util.Set<java.lang.String> groups)
- Specified by:
map
in interfaceContextAuthenticationMapper
- Parameters:
attributes
- The attributes in the contextusername
- The username used to authenticategroups
- The roles associated with the user- Returns:
- An
AuthenticationResponse
-
-