Class 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>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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
      • Methods inherited from interface org.springframework.core.convert.converter.Converter

        andThen
    • Constructor Detail

      • RuntimeBundleJwtUserInfoUriAuthenticationConverter

        public RuntimeBundleJwtUserInfoUriAuthenticationConverter​(org.activiti.cloud.services.common.security.jwt.JwtUserInfoUriAuthenticationConverter jwtUserInfoUriAuthenticationConverter)
    • 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:
        convert in interface org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,​org.springframework.security.authentication.AbstractAuthenticationToken>
        Parameters:
        jwt -
        Returns:
        the Jwt authentication token