Exemple #1
0
        public async Task <ActionResult> RevokeConsentSession(string client, bool?all)
        {
            var user = await GetUser();

            if (user == null)
            {
                return(NotFound());
            }
            await _hydra.RevokeConsentSession(user.UserName, client, all);

            return(Ok());
        }
Exemple #2
0
        public async Task <ActionResult> RevokeConsentSession(string id, string client, bool?all)
        {
            var appUser = await _userManager.FindByIdAsync(id);

            if (appUser == null)
            {
                return(NotFound());
            }
            await _hydra.RevokeConsentSession(appUser.UserName, client, all);

            return(Ok());
        }