andacata / HybridIgniter

HybridAuth - CodeIgniter integration
139 stars 84 forks source link

Database instructions #12

Closed viperfx closed 11 years ago

viperfx commented 11 years ago

Hi,

Thank you for taking the time to make this library. I am currently using A3M and I want to use something that has a bit more support and updated recently. Currently in my app I am using only the twitter auth.

A3M stores oauth_token and oauth_token_secret of each user in our database. However I do not see a similar setup in hybridauth. I was wondering if you can provide some advice on how I can migrate A3M to hybrid auth while not making every re-register etc.

I am also struggling to find any database related files or code such as sql file. Surely it cant be all cookies?

andacata commented 11 years ago

HybridAuth only provides the connection to the social providers. You need to store the information to the database by yourself.

I don't know how A3M is storing the twitter_oauth information, but I think the information may be the same (twitter ID for each user) and you can copy it to the new database table.

I'm not including any database storage in this library to keep as KISS as possible, letting each project to decide how to store the information (if it's needed).

Best regards.