Class AbstractConnectAuthenticationProvider
java.lang.Object
com.atlassian.connect.spring.internal.auth.AbstractConnectAuthenticationProvider
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider
- Direct Known Subclasses:
AsymmetricAuthenticationProvider
,JwtAuthenticationProvider
public abstract class AbstractConnectAuthenticationProvider
extends Object
implements org.springframework.security.authentication.AuthenticationProvider
Base AuthenticationProvider class for JWT authentication
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AddonDescriptorLoader
protected final AtlassianHostRepository
protected static final org.slf4j.Logger
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractConnectAuthenticationProvider
(AddonDescriptorLoader addonDescriptorLoader, AtlassianHostRepository hostRepository) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
computeQueryStringHash
(JwtCredentials jwtCredentials) protected AtlassianHostUser
createHostUserFromSubjectClaim
(AtlassianHost host, com.nimbusds.jwt.JWTClaimsSet verifiedClaims) protected AtlassianHost
getHostClientKeyFromSelfAuthenticationToken
(com.nimbusds.jwt.JWTClaimsSet unverifiedClaims) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.security.authentication.AuthenticationProvider
authenticate, supports
-
Field Details
-
log
protected static final org.slf4j.Logger log -
addonDescriptorLoader
-
hostRepository
-
-
Constructor Details
-
AbstractConnectAuthenticationProvider
protected AbstractConnectAuthenticationProvider(AddonDescriptorLoader addonDescriptorLoader, AtlassianHostRepository hostRepository)
-
-
Method Details
-
createHostUserFromSubjectClaim
protected AtlassianHostUser createHostUserFromSubjectClaim(AtlassianHost host, com.nimbusds.jwt.JWTClaimsSet verifiedClaims) -
computeQueryStringHash
-
getHostClientKeyFromSelfAuthenticationToken
-
getHost
protected AtlassianHost getHost(String clientKey) throws org.springframework.security.core.AuthenticationException - Throws:
org.springframework.security.core.AuthenticationException
-