Skip to content

Commit

Permalink
- Fix authenticationState and make -discardServerCredentials effectiv…
Browse files Browse the repository at this point in the history
…e immediately instead of on next launch

git-svn-id: https://mpoauthconnection.googlecode.com/svn/trunk@116 a7fc5028-c6e7-11dd-bfe9-7982af55821d
  • Loading branch information
karl.adam committed Apr 13, 2009
1 parent c1a8ede commit c43cce3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Source/Framework/MPOAuthAPI.m
Expand Up @@ -139,6 +139,7 @@ - (oneway void)dealloc {
@synthesize activeLoaders = _activeLoaders;
@synthesize delegate = _delegate;
@synthesize refreshTimer = _refreshTimer;
@synthesize authenticationState = _oauthAuthenticationState;

#pragma mark -

Expand Down Expand Up @@ -284,6 +285,12 @@ - (void)discardServerCredentials {
[self removeValueFromKeychainUsingName:MPOAuthCredentialAccessTokenKey];
[self removeValueFromKeychainUsingName:MPOAuthCredentialAccessTokenSecretKey];

[_credentials setRequestToken:nil];
[_credentials setRequestTokenSecret:nil];
[_credentials setAccessToken:nil];
[_credentials setAccessTokenSecret:nil];
[_credentials setSessionHandle:nil];

self.authenticationState = MPOAuthAuthenticationStateUnauthenticated;
}

Expand Down

0 comments on commit c43cce3

Please sign in to comment.