Modern applications require a robust security mechanism to ensure that users can access only the resources they are authorized to…