public async Task <bool> RequiresConsentAsync(Client client, ClaimsPrincipal user, IEnumerable <string> scopes)
        {
            if (client == null)
            {
                throw new ArgumentNullException("client");
            }
            if (user == null)
            {
                throw new ArgumentNullException("user");
            }

            if (!client.RequireConsent)
            {
                return(false);
            }

            return(await _store.RequiresConsentAsync(client.ClientId, user.GetSubjectId(), scopes));
        }