To use the stateless isis token in a microservice you need to follow these steps

 

@Configuration
@EnableAutoConfiguration
@EnableTenantContext
> @EnableAnubis
@ComponentScan({"io.mifos.anubis.example.simple"})
public class ExampleConfiguration {}

 

@RequestMapping(value = "/dummy", method = RequestMethod.GET)
> @Permittable(value = AcceptedTokenType.TENANT, groupId = PermittableGroupIds.DUMMY_MANAGEMENT)
public @ResponseBody ResponseEntity<Void> readPermittableResource() {
return ResponseEntity.accepted().build();
}