Netflix API Forums

I Need Help!

RSS Feed

Storing OAuth Request Token/Secret - Best Practice in PHP?

    • Bruinor
    • Topic created 3 years ago

    I have a PHP page that:

    1) Gets an OAuth Request token.
    2) Directs the user to a new page to authorize the request token.

    When the user authorizes the request token they are then redirected back to the call_back page (the original php page). However, at this point the script does not remember the OAuth key/secret. The OAuth key is a parameter of the redirected URL so it can be easily recaptured, however the OAuth secret has been lost at this point. The question I have is:

    "What is a best practice PHP method (besides writing it to a database) for storing an OAuth secret so that it is available after a NetFlix request token authorization?"

    Message edited by Bruinor 3 years ago

  1. Armando Padilla3 years ago

    if its just for that specified time set it in the users session.

[ Page 1 of 1 ]