public async Task <ActionResult> ClearOAuth()
        {
            model.OAuthTokens.RemoveRange(model.OAuthTokens);
            var result = await model.SaveChangesAsync();

            return(RedirectToAction("Index", "UserProfile", new { authError = "AuthorizationRequired" }));
        }
Beispiel #2
0
        public async Task <ActionResult> ClearOAuth()
        {
            model.OAuthTokens.RemoveRange(model.OAuthTokens);
            ascStore.appServiceCertificates.RemoveRange(ascStore.appServiceCertificates);
            var result = await model.SaveChangesAsync();

            result = await ascStore.SaveChangesAsync();

            return(RedirectToAction("Index", "AppServiceCertificate", new { authError = "AuthorizationRequired" }));
        }