Package com.totvs.tjf.security.oauth2
Class TenantConverterStandard
java.lang.Object
com.totvs.tjf.security.oauth2.TenantConverterStandard
- All Implemented Interfaces:
com.totvs.tjf.core.security.context.TenantConverter
@ConditionalOnMissingBean(com.totvs.tjf.core.security.context.TenantConverter.class)
public class TenantConverterStandard
extends Object
implements com.totvs.tjf.core.security.context.TenantConverter
Converts the companyId(tenant) of the token into a valid tenant, based on the
RAC information.
- Author:
- Diego Nunes da Silveira
-
Constructor Summary
ConstructorsConstructorDescriptionTenantConverterStandard
(RacTokenService racTokenService) Default constructor. -
Method Summary
-
Constructor Details
-
TenantConverterStandard
Default constructor.- Parameters:
racTokenService
- #RacTokenService
-
-
Method Details
-
converter
Converts the companyId of the token into a valid tenant, based on the RAC information.- Specified by:
converter
in interfacecom.totvs.tjf.core.security.context.TenantConverter
- Parameters:
fluigTenant
- tenant available in jwt tokentoken
- jwt- Returns:
- tenant tenant available in RAC
-