Skip to content
This repository has been archived by the owner on Dec 20, 2017. It is now read-only.

Logout Issue #4

Open
waqas-idrees-confiz opened this issue Oct 3, 2014 · 0 comments
Open

Logout Issue #4

waqas-idrees-confiz opened this issue Oct 3, 2014 · 0 comments

Comments

@waqas-idrees-confiz
Copy link

I am Logout using the following Code

ADAuthenticationError error;
var authenticationContext = ADAuthenticationContext.AuthenticationContextWithAuthority(IdentityAuthority, out error);
authenticationContext.TokenCacheStore.RemoveAllWithError(out error);

var cookies = NSHttpCookieStorage.SharedStorage.Cookies.ToList();
foreach (var cookie in cookies)
{
NSHttpCookieStorage.SharedStorage.DeleteCookie(cookie);
}

After logout Login page is not showing and giving the following error

The user is currently prompted for credentials as result of another acquireToken request. Please retry the acquireToken call later.

Error is on this line
await authenticationContext.AcquireTokenWithResourceAsync(targetServerUrl, Id, redirectUri);

But if i close the application and reopen it login page successfully showing without any error

Have any idea about this

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant