I am trying to authorize apis exposed by Spring Data REST. So far I am able to do role-based authorization …