public class AuthDataAccessor extends Object
@Transactional
) access to authentication / authorization data.Modifier and Type | Field and Description |
---|---|
protected AccessTokenDAO |
accessTokenDAO |
protected String |
adminUser |
protected static Set<SyncopeGrantedAuthority> |
ANONYMOUS_AUTHORITIES |
protected String |
anonymousUser |
protected AnyTypeDAO |
anyTypeDAO |
protected AuditManager |
auditManager |
protected ConfDAO |
confDAO |
protected ConnectorFactory |
connFactory |
protected DelegationDAO |
delegationDAO |
protected DomainDAO |
domainDAO |
protected static Encryptor |
ENCRYPTOR |
static String |
GROUP_OWNER_ROLE |
protected GroupDAO |
groupDAO |
protected ImplementationLookup |
implementationLookup |
protected static org.slf4j.Logger |
LOG |
protected MappingManager |
mappingManager |
protected RealmDAO |
realmDAO |
protected RoleDAO |
roleDAO |
protected AnySearchDAO |
searchDAO |
protected UserDAO |
userDAO |
Constructor and Description |
---|
AuthDataAccessor() |
public static final String GROUP_OWNER_ROLE
protected static final org.slf4j.Logger LOG
protected static final Encryptor ENCRYPTOR
protected static final Set<SyncopeGrantedAuthority> ANONYMOUS_AUTHORITIES
protected String adminUser
protected String anonymousUser
@Autowired protected DomainDAO domainDAO
@Autowired protected ConfDAO confDAO
@Autowired protected RealmDAO realmDAO
@Autowired protected UserDAO userDAO
@Autowired protected GroupDAO groupDAO
@Autowired protected AnyTypeDAO anyTypeDAO
@Autowired protected AnySearchDAO searchDAO
@Autowired protected AccessTokenDAO accessTokenDAO
@Autowired protected RoleDAO roleDAO
@Autowired protected DelegationDAO delegationDAO
@Autowired protected ConnectorFactory connFactory
@Autowired protected AuditManager auditManager
@Autowired protected MappingManager mappingManager
@Autowired protected ImplementationLookup implementationLookup
public JWTSSOProvider getJWTSSOProvider(String issuer)
@Transactional(readOnly=true) public Domain findDomain(String key)
protected String getDelegationKey(SyncopeAuthenticationDetails details, String delegatedKey)
@Transactional(noRollbackFor=org.springframework.security.authentication.DisabledException.class) public Triple<User,Boolean,String> authenticate(Authentication authentication)
authentication
- given credentialsnull
if no matching user was found, authentication result otherwiseprotected Set<? extends ExternalResource> getPassthroughResources(User user)
protected Set<SyncopeGrantedAuthority> getAdminAuthorities()
protected Set<SyncopeGrantedAuthority> buildAuthorities(Map<String,Set<String>> entForRealms)
protected Set<SyncopeGrantedAuthority> getUserAuthorities(User user)
protected Set<SyncopeGrantedAuthority> getDelegatedAuthorities(Delegation delegation)
@Transactional public Set<SyncopeGrantedAuthority> getAuthorities(String username, String delegationKey)
@Transactional public Pair<String,Set<SyncopeGrantedAuthority>> authenticate(JWTAuthentication authentication)
@Transactional public void removeExpired(String tokenKey)
@Transactional(readOnly=true) public void audit(String username, String delegationKey, AuditElements.Result result, Object output, Object... input)
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.