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
Fields Modifier and Type Field Description protected AddonDescriptorLoader
addonDescriptorLoader
protected AtlassianHostRepository
hostRepository
protected static org.slf4j.Logger
log
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractConnectAuthenticationProvider(AddonDescriptorLoader addonDescriptorLoader, AtlassianHostRepository hostRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
computeQueryStringHash(JwtCredentials jwtCredentials)
protected AtlassianHostUser
createHostUserFromSubjectClaim(AtlassianHost host, com.nimbusds.jwt.JWTClaimsSet verifiedClaims)
protected AtlassianHost
getHost(String clientKey)
protected Optional<String>
getHostClientKeyFromSelfAuthenticationToken(com.nimbusds.jwt.JWTClaimsSet unverifiedClaims)
-
-
-
Field Detail
-
log
protected static final org.slf4j.Logger log
-
addonDescriptorLoader
protected AddonDescriptorLoader addonDescriptorLoader
-
hostRepository
protected AtlassianHostRepository hostRepository
-
-
Constructor Detail
-
AbstractConnectAuthenticationProvider
protected AbstractConnectAuthenticationProvider(AddonDescriptorLoader addonDescriptorLoader, AtlassianHostRepository hostRepository)
-
-
Method Detail
-
createHostUserFromSubjectClaim
protected AtlassianHostUser createHostUserFromSubjectClaim(AtlassianHost host, com.nimbusds.jwt.JWTClaimsSet verifiedClaims)
-
computeQueryStringHash
protected String computeQueryStringHash(JwtCredentials jwtCredentials)
-
getHostClientKeyFromSelfAuthenticationToken
protected Optional<String> getHostClientKeyFromSelfAuthenticationToken(com.nimbusds.jwt.JWTClaimsSet unverifiedClaims)
-
getHost
protected AtlassianHost getHost(String clientKey) throws org.springframework.security.core.AuthenticationException
- Throws:
org.springframework.security.core.AuthenticationException
-
-