public class StandardJwtAuthenticationConverter extends Object implements org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,NiFiAuthenticationToken>
| Modifier and Type | Field and Description |
|---|---|
private Authorizer |
authorizer |
private List<IdentityMapping> |
identityMappings |
private IdpUserGroupService |
idpUserGroupService |
| Constructor and Description |
|---|
StandardJwtAuthenticationConverter(Authorizer authorizer,
IdpUserGroupService idpUserGroupService,
NiFiProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
NiFiAuthenticationToken |
convert(org.springframework.security.oauth2.jwt.Jwt jwt)
Convert JSON Web Token to NiFi Authentication Token
|
private Set<String> |
getIdentityProviderGroups(String identity) |
private NiFiUser |
getUser(org.springframework.security.oauth2.jwt.Jwt jwt) |
private final Authorizer authorizer
private final IdpUserGroupService idpUserGroupService
private final List<IdentityMapping> identityMappings
public StandardJwtAuthenticationConverter(Authorizer authorizer, IdpUserGroupService idpUserGroupService, NiFiProperties properties)
public NiFiAuthenticationToken convert(org.springframework.security.oauth2.jwt.Jwt jwt)
convert in interface org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,NiFiAuthenticationToken>jwt - JSON Web Tokenprivate NiFiUser getUser(org.springframework.security.oauth2.jwt.Jwt jwt)
Copyright © 2023 Apache NiFi Project. All rights reserved.