public class RecoveryModeAwareTokenAuthenticationManager extends TokenAuthenticationManagerImpl
RECENT_TOKENS_CACHE_SIZE_SYSTEM_PROPERTY_NAME, RECENT_TOKENS_CACHE_TTL_SYSTEM_PROPERTY_NAME
Constructor and Description |
---|
RecoveryModeAwareTokenAuthenticationManager(SessionTokenStorage tokenManager,
ApplicationDAO applicationDao,
TokenFactory tokenFactory,
com.atlassian.cache.Cache<String,Boolean> cache,
com.atlassian.event.api.EventPublisher eventPublisher,
PropertyManager propertyManager,
DirectoryManager directoryManager,
ApplicationManager applicationManager,
ApplicationService applicationService,
RecoveryModeService recoveryModeService,
ApplicationFactory applicationFactory,
Clock clock) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isAllowedToAuthenticate(String username,
long directoryId,
Application application)
Determines if a user is permitted to attempt authentication with a given application.
|
activeValidationFactors, authenticateApplication, authenticateApplicationWithoutValidatingPassword, authenticateUser, authenticateUser, authenticateUserWithoutValidatingPassword, findAuthorisedApplications, findUserByToken, findUserTokenByKey, generateUserToken, genericValidateToken, getTokenExpiryTime, invalidateAllTokens, invalidateToken, invalidateTokensForUser, isExpired, maybeUpdateLastAccessedTime, removeExpiredTokens, validateApplicationToken, validateUserToken
public RecoveryModeAwareTokenAuthenticationManager(SessionTokenStorage tokenManager, ApplicationDAO applicationDao, TokenFactory tokenFactory, com.atlassian.cache.Cache<String,Boolean> cache, com.atlassian.event.api.EventPublisher eventPublisher, PropertyManager propertyManager, DirectoryManager directoryManager, ApplicationManager applicationManager, ApplicationService applicationService, RecoveryModeService recoveryModeService, ApplicationFactory applicationFactory, Clock clock)
protected boolean isAllowedToAuthenticate(String username, long directoryId, Application application) throws OperationFailedException, DirectoryNotFoundException
TokenAuthenticationManagerImpl
For a a user to have access to an application:
And either:
Note that this call is not cached and does not affect the cache.
isAllowedToAuthenticate
in class TokenAuthenticationManagerImpl
username
- the username of the user that wants to authenticate with the application.directoryId
- the directoryId of the user that wants to authenticate with the application.application
- application the user wants to authenticate with.true
iff the user is permitted to attempt authentication with the application.OperationFailedException
- if the directory implementation could not be loaded when performing a membership check.DirectoryNotFoundException
Copyright © 2020 Atlassian. All rights reserved.