This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.
  • Index
  •  » Suggestions
  •  » Privacy for api: http://scratch.mit.edu/api/authenticateuser

#1 2011-07-09 10:41:08

comp500
Scratcher
Registered: 2010-01-08
Posts: 1000+

Privacy for api: http://scratch.mit.edu/api/authenticateuser

The http://scratch.mit.edu/api/authenticateuser api defined in http://trac.assembla.com/scratchr/brows … roller.php may cause privacy problems and confusion as giving scratch credentials to another person may cause hacking. So I think that instead of signing in on the website where the api is being used, it would redirect to a scratch page, which is given parameters about what apis the website wants, where the user can grant/decline access to the api(s) the website needs, and then the website would get a token to use to get the api response.

You could use openid for login stuff.

Proposed parameter(s)
apis - An array of the apis that the website wants

Proposed apis
loggedinscratcher - Returns the username of the currently logged in scratcher
emailaddress - Returns the email address of the currently logged in scratcher
More coming soon!

Returns false when access is declined.

Example
A request to:

Code:

http://scratch.mit.edu/api/authenticateuser?apis=loggedinscratcher

returns a token. Let's imagine it's aa000. You can then go to

Code:

http://scratch.mit.edu/api/loggedinapis?token=aa000

which returns

Code:

comp500

because I specified the loggedinscratcher api in the first url.

Suggestion here.

Last edited by comp500 (2011-07-09 12:15:02)


800 posts! W00T! Oh sorry im not on a lot but at least i have 1000+ posts

Offline

 
  • Index
  •  » Suggestions
  •  » Privacy for api: http://scratch.mit.edu/api/authenticateuser

Board footer