Jump to content

Welcome! You're currently a Guest.

If you'd like to join in the Discussion, or access additional features in our forums, please sign in with your Evernote Account here. Have an Evernote Account but forgot your password? Reset it! Don't have an account yet? Create One! You'll need to set your Display Name before your first post.

Photo

How can I clear the account in Evernote iOS SDK

ios account auth

  • Please log in to reply
4 replies to this topic

#1 Slavik

Slavik

  • Pip
  • Title: Member
  • Group: Members
  • 8 posts

Posted 18 May 2012 - 09:37 AM

I have a problem about change the account in iOS SDK.

I use the following code to clear the account info

[[EvernoteSession sharedSession] logout];

It does clear the auth info in my app.

However, when I try to login with authenticateWithCompletionHandler:,
the safari popup without the login ui, but a auth page instead.

That does confused the user, and there is not even a logout button on the page.

I'm using a sandbox account. Is that the reason?

#2 SethH

SethH

  • Title: Evernote Employee
  • Group: Evernote Employee
  • 683 posts

Posted 18 May 2012 - 11:41 PM

That's a good point. We'll figure out what we need to add into the OAuth pages to make this workable while avoiding user confusion.

#3 Benjamin Schuster-Boeckler

Benjamin Schuster-Boeckler

  • Pip
  • Title: Member
  • Group: Members
  • 12 posts

Posted 08 June 2012 - 09:34 AM

I was just about to say the same thing. I'm using the UIWwebView-based OAuth from one of the forks of the Evernote API on Github. I just sent a pull request for my own merge of 1.21 with that branch. I think from there, it should be possible somehow to destroy the cookie that keeps the session alive even though the auth-token has been deleted.

#4 Slavik

Slavik

  • Pip
  • Title: Member
  • Group: Members
  • 8 posts

Posted 09 June 2012 - 08:00 PM

Thanks, I will try it.

#5 SethH

SethH

  • Title: Evernote Employee
  • Group: Evernote Employee
  • 683 posts

Posted 11 June 2012 - 05:14 PM

For testing, you can also navigate to https://sandbox.ever...m/Logout.action in the browser window, which will destroy the cookie.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Clip to Evernote