Coder Social home page Coder Social logo

Comments (2)

jimdoescode avatar jimdoescode commented on August 28, 2024

The store in db method is pseudocode to demonstrate what you might want to do with the token data. It is purely for example purposes and was not meant to be implemented. Sorry for the confusion.

In your case you will want to record the token data in a config file and recall it that way. You only need to store the token data in a database if you are authenticating with multiple users and those users have database entries.

I am closing this ticket as it's not an issue.

from codeigniter-dropbox-api-library.

talkingnews avatar talkingnews commented on August 28, 2024

OK, I understand. As it happens, I just found that the CMS I am using, PyroCMS, actually has a built-in encrypted field type in its ORM, so in fact it's as easy as (something along the lines of)

$entry_data = array( 'oauth_token' => $oauth['oauth_token'], 'oauth_token_secret' => $oauth['oauth_token_secret'] ); $this->streams->entries->update_entry(1, $entry_data, 'tokens', 'streams');

and retrieve with

$token = $this->streams->entries->get_entry(1, 'tokens', 'streams');

as I found about 5 minutes before you posted here. Working well now, great library, thanks again.

from codeigniter-dropbox-api-library.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.