[ResourceAuthorization] Added ProviderOptions to create the manager per middelware invoke.