Class RuntimeBundleJwtUserInfoUriAuthenticationConverter
- java.lang.Object
-
- org.activiti.cloud.starter.rb.jwt.RuntimeBundleJwtUserInfoUriAuthenticationConverter
-
- All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,org.springframework.security.authentication.AbstractAuthenticationToken>
public class RuntimeBundleJwtUserInfoUriAuthenticationConverter extends Object implements org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,org.springframework.security.authentication.AbstractAuthenticationToken>
-
-
Constructor Summary
Constructors Constructor Description RuntimeBundleJwtUserInfoUriAuthenticationConverter(org.activiti.cloud.services.common.security.jwt.JwtUserInfoUriAuthenticationConverter jwtUserInfoUriAuthenticationConverter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.authentication.AbstractAuthenticationTokenconvert(org.springframework.security.oauth2.jwt.Jwt jwt)In Runtime Bundle's case, we need to perform the same conversion as in other modules using the common jwt converter, but also adding the id of the currently authenticated user so that it can be set as the initiator of the process instance
-
-
-
Method Detail
-
convert
public org.springframework.security.authentication.AbstractAuthenticationToken convert(org.springframework.security.oauth2.jwt.Jwt jwt)
In Runtime Bundle's case, we need to perform the same conversion as in other modules using the common jwt converter, but also adding the id of the currently authenticated user so that it can be set as the initiator of the process instance- Specified by:
convertin interfaceorg.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,org.springframework.security.authentication.AbstractAuthenticationToken>- Parameters:
jwt-- Returns:
- the Jwt authentication token
-
-