We are using IdentityServer3 to authenticate our users. We run it on a separate web application to the main application API. There is a hierarchy of claims - for example, sites, factories and equipment. It is possible for a user to have a claim for a piece of equipment that is at a factory, but not have a claim for the entire factory, or the site.
The distribution of claims is handled by means of a background job.
When a user creates a site, factory or equipment a claim is created for them, this may have also been distributed to other users.
When a request comes into the engine API we need to be sure we're looking at the most up to date set of claims for the current user.
Is there any way to guarantee that the most recent claims are sent to the API each time?