Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I save Access token and secret for future use? #11

Open
savannahbeckett opened this issue Oct 7, 2010 · 4 comments
Open

How do I save Access token and secret for future use? #11

savannahbeckett opened this issue Oct 7, 2010 · 4 comments

Comments

@savannahbeckett
Copy link

I don't want my web application to ask user to grant access every hour. How do I save the ACCESS GET request for future use and save it to database? or can I save the access token and secret into the database? If so, what function should I call?
Thanks.

@chok
Copy link
Owner

chok commented Oct 7, 2010

It's automatic but it's depend on the expiration of the token. Some tokens have expiration time some not.

All tokens for a connected user is stored and when the user isn't connected. You ask for a new token or to recognize an existing token.

Is that clear ?

@savannahbeckett
Copy link
Author

I understand, but I am trying to store the access token in my backend server for further connecting which has no interaction with user. So my frontend server will get the access token and do its own thing, then send the access token to my backend server for them to do more connecting.

@chok
Copy link
Owner

chok commented Oct 30, 2010

If you always need help sorry for the wait :D !

For the same connection (project) which share the same tables, if you have store tokens you can use in all of your applications.

@danieljarrett74
Copy link

I think what savannahbeckett was getting at is possible the same thing I am trying to figure out how to do.

I want a way to delay the creation of a user until the visitor has completed a further details registration form.

So the user has the option of signing up with facebook connect or without.
if they click the facebook connect option then the following happens.

  1. they are forwarded to facebook for authentication.
  2. they are returned to a registration page on my site with certain form fields pre populated.
  3. user fills out remaining fields and submits.
  4. all user information is saved to sf_guard_user table and token table as well as my profile table which contains the extra information.

How would i go about doing this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants