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

What oAuth Values Should I Store and How?

oauth storage

  • Please log in to reply
2 replies to this topic

#1 TomatoBin

TomatoBin

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

Posted 12 July 2012 - 07:22 PM

After successfully implementing oAuth in my application (based off the PHP SDK sample) I can go ahead and use the API properly to add/update notes in a users account.

However, if I come back to my application the next day...I no longer have access and the user must go through the oauth process and re-authorize the application again.

Can I store some of the oauth values in my database, and use them to authenticate a user at anytime?

If so, what values do I need to store? ...there's the oAuth verifier, access token identifier, access token secret.
Do I need to store all three of those values and is storing them in my database an ok method?

Thanks in advance for any help

#2 Julien Boedec

Julien Boedec

  • Title: Browncoat
  • Group: Evernote Employee
  • 406 posts

Posted 13 July 2012 - 05:01 AM

Yes, you may store the authentication token and the noteStore URL in a database. That information is enough to avoid re authenticating.

#3 TomatoBin

TomatoBin

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

Posted 13 July 2012 - 04:04 PM

Thanks Julien for the reply!!

This sounds like exactly what I need. So I dont need the token secret? Would I ever need that?

Also when you say noteStore URL, I don't see a URL per se...I do see a "Shard id" but thats it. Do I have to create the url myself?

Thanks





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

Clip to Evernote