OZP-798: Configuring legacy and rest to work with new security setup