Thanks for your response. The problem lies not with my application
security, but with the security of the twitter account of my users.
Imagine this:

1. User comes to my application and signs in with Twitter.
2. This forces the user to log into Twitter (force_login=true)
3. The user is redirected back to my application and is now
authenticated to use it.

So far all is fine, but since the computer is public, consider this:

4. User signs out of the application, but doesn't click the button to
sign out of Twitter as well (people forget that. because they think
its weird to log out twice)
5. The next user comes to use the computer, but instead of using the
application, he goes directly to twitter.com
6. Since the last user didn't sign out, the new user can do pretty
much anything with the account of the previous user.

Regards,
Gert

On 10 jun, 00:08, themattharris <[email protected]> wrote:
> Hey GHengeveld,
>
> There was a conversation about this back in April which might be help
> [1]. In it Taylor explains that OAuth is stateless and that the logged
> in state of a user is based on your system rather than ours.
>
> Your application would be interacting with Twitter using the OAuth
> tokens for the user as you have identified them. If the user isn't
> recognised I would expect your widget would detect that and ask the
> user to authenticate or authorize again. That being said, the method
> you use to identify the user depends on what you want to do. Also, as
> the user isn't logged into Twitter through the API the account/
> end_session method will have no affect.
>
> I'm wondering, have you looked at @anywhere. It may be suitable for
> what you want to do.
>
> Matt
>
> 1.http://groups.google.com/group/twitter-development-talk/browse_thread...
>
> On Jun 8, 7:25 am, GHengeveld <[email protected]> wrote:
>
>
>
> > I'm developing an application designed to run on a public computer,
> > where many users will sign in with Twitter to register for our app.
>
> > I've been looking for a way to sign the user out of Twitter when they
> > exit the application (though a sign out button). Since we cannot
> > destroy the cookies set by twitter.com, all it does right now is
> > destroy our own session and cookies and show a button which links to
> > the Twitter sign out page (in a popup).
>
> > We would prefer not to use the popup, but instead sign the user out of
> > Twitter automatically when they sign out of our application. This will
> > greatly reduce the likeliness of people forgetting tologout(and thus
> > allowing access to their own account by the next user). We're already
> > using force_login=true to force a new login when someone connects to
> > our application, but then it could already be too late.
>
> > Is there any way to call a sign out through the API?
>
> > Account/end_session seems to be what I'm looking for, but I can't get
> > it to work. Another approach would be to scrape twitter.com for the
> > authenticity_token and call thelogoutfrom through cURL, but this
> > isn't the nicest way to do things and my first attemps have failed so
> > far.

Reply via email to