Class InstrumentedAuthDataAccessor
java.lang.Object
org.apache.syncope.core.spring.security.AuthDataAccessor
org.apache.syncope.core.spring.security.InstrumentedAuthDataAccessor
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.syncope.core.spring.security.AuthDataAccessor
AuthDataAccessor.JWTAuthResult, AuthDataAccessor.UsernamePasswordAuthResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected final io.micrometer.core.instrument.MeterRegistryprotected static final Stringprotected static final Stringprotected static final Stringprotected static final StringFields inherited from class org.apache.syncope.core.spring.security.AuthDataAccessor
accessTokenDAO, ANONYMOUS_AUTHORITIES, ANYOBJECT_MANAGER_ENTITLEMENTS, anySearchDAO, auditManager, BASE_MANAGER_ENTITLEMENTS, confParamOps, connectorManager, credentialChecker, delegationDAO, encryptorManager, GROUP_MANAGER_ENTITLEMENTS, groupDAO, LOG, mappingManager, MFA_ENROLL_AUTHORITIES, MUST_CHANGE_PASSWORD_AUTHORITIES, realmSearchDAO, resourceDAO, roleDAO, securityProperties, totpCodeVerifier, USER_MANAGER_ENTITLEMENTS, userDAO -
Constructor Summary
ConstructorsConstructorDescriptionInstrumentedAuthDataAccessor(SecurityProperties securityProperties, EncryptorManager encryptorManager, dev.samstevens.totp.code.CodeVerifier totpCodeVerifier, RealmSearchDAO realmSearchDAO, UserDAO userDAO, GroupDAO groupDAO, AnySearchDAO anySearchDAO, AccessTokenDAO accessTokenDAO, ConfParamOps confParamOps, RoleDAO roleDAO, DelegationDAO delegationDAO, ExternalResourceDAO resourceDAO, ConnectorManager connectorManager, AuditManager auditManager, MappingManager mappingManager, DefaultCredentialChecker credentialChecker, List<JWTSSOProvider> jwtSSOProviders, io.micrometer.core.instrument.MeterRegistry meterRegistry) -
Method Summary
Modifier and TypeMethodDescriptionauthenticate(Optional<Domain> domain, Authentication authentication) Attempts to authenticate the given credentials against internal storage and pass-through resources (if configured): the first succeeding causes global success.authenticate(JWTAuthentication authentication) Methods inherited from class org.apache.syncope.core.spring.security.AuthDataAccessor
audit, authenticateAdmin, authenticateAnonymous, authenticateUser, buildAuthorities, doAuthenticateAdmin, getAdminAuthorities, getAuthorities, getDelegatedAuthorities, getDelegationKey, getJWTSSOProvider, getPassthroughResources, getUserAuthorities, populateEntForRealms, removeExpired
-
Field Details
-
SUCCESS_TYPE
- See Also:
-
FAILURE_TYPE
- See Also:
-
MUST_CHANGE_PASSWORD_TYPE
- See Also:
-
MFA_ENROLL_TYPE
- See Also:
-
NOT_FOUND_TYPE
- See Also:
-
DISABLED_TYPE
- See Also:
-
USERNAME
-
JWT
-
SUCCESS_DESC
-
FAILURE_DESC
-
MUST_CHANGE_PASSWORD_DESC
-
MFA_ENROLL_DESC
-
NOT_FOUND_DESC
-
DISABLED_DESC
-
meterRegistry
protected final io.micrometer.core.instrument.MeterRegistry meterRegistry
-
-
Constructor Details
-
InstrumentedAuthDataAccessor
public InstrumentedAuthDataAccessor(SecurityProperties securityProperties, EncryptorManager encryptorManager, dev.samstevens.totp.code.CodeVerifier totpCodeVerifier, RealmSearchDAO realmSearchDAO, UserDAO userDAO, GroupDAO groupDAO, AnySearchDAO anySearchDAO, AccessTokenDAO accessTokenDAO, ConfParamOps confParamOps, RoleDAO roleDAO, DelegationDAO delegationDAO, ExternalResourceDAO resourceDAO, ConnectorManager connectorManager, AuditManager auditManager, MappingManager mappingManager, DefaultCredentialChecker credentialChecker, List<JWTSSOProvider> jwtSSOProviders, io.micrometer.core.instrument.MeterRegistry meterRegistry)
-
-
Method Details
-
authenticate
public AuthDataAccessor.UsernamePasswordAuthResult authenticate(Optional<Domain> domain, Authentication authentication) Description copied from class:AuthDataAccessorAttempts to authenticate the given credentials against internal storage and pass-through resources (if configured): the first succeeding causes global success.- Overrides:
authenticatein classAuthDataAccessor- Parameters:
domain- domainauthentication- given credentials- Returns:
- authentication result
-
authenticate
- Overrides:
authenticatein classAuthDataAccessor
-