This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#76 2012-06-22 12:56:02

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Scratch API 2.0

sparks wrote:

Oh good grief. Hang on.

EDIT: you should be able to log in now.

Thank you, it works

Offline

 

#77 2012-06-22 13:29:49

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Scratch API 2.0

How about "Scratchapi" pronounced Scratch appi.

IDK. I'm stuck for names. If we even need one.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#78 2012-06-22 13:38:03

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Scratch API 2.0

I've created an `images` database table with the fields:

id, username, publicity, created

(image ID, username of creator, public or private and creation date)

I'm not going to do the elements table yet, since we still need to finalise all the columns that one will need.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#79 2012-06-22 13:45:49

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Scratch API 2.0

sparks wrote:

I've created an `images` database table with the fields:

id, username, publicity, created

(image ID, username of creator, public or private and creation date)

I'm not going to do the elements table yet, since we still need to finalise all the columns that one will need.

Yeah. How will we go about making the users database? Will we constantly check against the Scratch servers, or only check on:
- first time
- after a few weeks (cookie expiration)
- incorrect details (pass may have changed on scratch)

Or, we could scrap the idea of users connected with Scratch altogether, and instead have individual image IDs and edit passwords that the user has to remember. However the login certainly brings benefits. What do you think?

Offline

 

#80 2012-06-22 15:14:35

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Scratch API 2.0

I would personally love to use the verification link to join the two logins together. However, people feel safer not giving out their password outside the Scratch site. My guess is that most people will register with the same name anyway. If there are users misusing the system under an alias, myself, the other mods and the Scratch Team have IP based searching systems. (It might be worth storing user's IP's).

How about we offer the option to link the two accounts, saying they can log in with the same password or create a new account without the link? Is that worth it? In this case it would only check with the servers the first time. This might cause problems if they change their Scratch password though, so maybe using a cookie with a week expiry is the best option.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#81 2012-06-22 15:21:56

SciTecCf
Scratcher
Registered: 2011-11-23
Posts: 1000+

Re: Scratch API 2.0

Scrapi?  lol


http://bit.ly/LCZEJRhttp://bit.ly/LSONcOhttp://bit.ly/LF3vIc
http://trinary.site40.net/images/scratchrank.php?username=SciTecCf&display=small

Offline

 

#82 2012-06-22 15:50:30

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Scratch API 2.0

sparks wrote:

I would personally love to use the verification link to join the two logins together. However, people feel safer not giving out their password outside the Scratch site. My guess is that most people will register with the same name anyway. If there are users misusing the system under an alias, myself, the other mods and the Scratch Team have IP based searching systems. (It might be worth storing user's IP's).

How about we offer the option to link the two accounts, saying they can log in with the same password or create a new account without the link? Is that worth it? In this case it would only check with the servers the first time. This might cause problems if they change their Scratch password though, so maybe using a cookie with a week expiry is the best option.

So maybe Mod Share's first approach (before it was spammed by outsiders) is the best:
You are free to sign up under any alias, but if you use a username that is also used on Scratch you have to provide password just for verification on signup, and can choose a different password to actually be stored and hashed in our databases.

It goes without saying that IPs should be stored on signup, and maybe updated/appended on login.

Offline

 

#83 2012-06-22 15:57:29

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Scratch API 2.0

That sounds a good plan - stops people impersonating others!

Please note: I work at weekends so I won't be on much Saturday or Sunday! Feel free to do some stuff on this if you want to though!

Last edited by sparks (2012-06-22 17:06:57)


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#84 2012-06-23 09:12:31

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Scratch API 2.0

Here is a preliminary map of the site's pages:

Home- contains description, links, and maybe a how-to

User pages:
  Login, signup, logout
  Manage images- links to edit, add, and remove images
  Manage account- maybe change password could be integrated into the image page

Image creation page:
  Make image- a wizard that opens before the main GUI to set stuff like canvas size (which can still be set later) as well as maybe being able to choose from a template
  The GUI- the one and only image creation page  smile
  A small help page and start guide / video?
  Image deploying and ready BBCode

There could be space for a template submission system and image sharing if we have time and resources later.

We also need an admin page to manage users, images, and possibly to manage whitelists for embedded image URLs (although they should pretty much remain stable). Don't forget automatic word filters for embedded text!

Offline

 

#85 2012-06-23 14:32:43

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Scratch API 2.0

The plan above should get us started when it's possible for you (I hope we can work Monday and Tuesday afternoons, because then I'm leaving for a couple of weeks in Italy with reduced internet and a portable PC). Feel free to edit it to add pages or modify details.

Offline

 

#86 2012-06-23 15:55:21

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Scratch API 2.0

I'm free Monday and Tuesday  smile


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#87 2012-06-23 16:38:35

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Scratch API 2.0

sparks wrote:

I'm free Monday and Tuesday  smile

Good, we can start then. Any chance you could whip up a quick page template with style before Monday afternoon?

Offline

 

#88 2012-06-23 17:52:52

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Scratch API 2.0

Well I can make a start Monday morning, but I'm at work tomorrow too, so I won't be able to do much then! We'll see what I get up to by the time you're on  smile


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#89 2012-06-24 00:59:34

LiquidMetal
Scratcher
Registered: 2011-06-15
Posts: 500+

Re: Scratch API 2.0

sparks wrote:

I would personally love to use the verification link to join the two logins together. However, people feel safer not giving out their password outside the Scratch site. My guess is that most people will register with the same name anyway. If there are users misusing the system under an alias, myself, the other mods and the Scratch Team have IP based searching systems. (It might be worth storing user's IP's).

How about we offer the option to link the two accounts, saying they can log in with the same password or create a new account without the link? Is that worth it? In this case it would only check with the servers the first time. This might cause problems if they change their Scratch password though, so maybe using a cookie with a week expiry is the best option.

When would the IPs collected be used?  Would there be some sort of block if it was different, or just re-authentication?

Wouldn't a password stored in a cookie be retrievable by a third party who has access to the same computer?

Offline

 

#90 2012-06-24 03:49:15

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Scratch API 2.0

Collected IP's would be used as a combatant against unruly users. If someone uses another alias on the API site we can do an IP cross-check with the Scratch site to see who they are. That is of course a security measure and shouldn't have to be used. It wouldn't be used for the actual authentication - that would exclude people with dynamic IP's.

Yes, all cookies are retrievable. However, the password needn't be stored in the cookie as having the cookie is validation enough.


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#91 2012-06-24 03:59:54

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Scratch API 2.0

Heyo! This seems like an interesting project and  I would like to be a part of it, considering you're accepting members?

I was one of the PHP developers for the original Scratch Resources, (resdap on Google Code) and I have lots of experience working with PHP/Mysql/Databases, as you probably know.

I can also design interfaces and make mockups too.

So, yea.  tongue  Sounds like an interesting project. Would like to be part of it.  big_smile


Hai.

Offline

 

#92 2012-06-24 05:46:08

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Scratch API 2.0

sparks wrote:

Yes, all cookies are retrievable. However, the password needn't be stored in the cookie as having the cookie is validation enough.

Well, having a cookie with a username is not validation enough for the obvious reason that it can be changed way too easily, so I hope you don't mean that  tongue

However a hashed cookie of username+password+secrethashphrase+maybeIPaddress is undiscoverable and inimitable, therefore ultra secure!  smile

Offline

 

#93 2012-06-24 13:18:32

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Scratch API 2.0

LS97 wrote:

sparks wrote:

Yes, all cookies are retrievable. However, the password needn't be stored in the cookie as having the cookie is validation enough.

Well, having a cookie with a username is not validation enough for the obvious reason that it can be changed way too easily, so I hope you don't mean that  tongue

However a hashed cookie of username+password+secrethashphrase+maybeIPaddress is undiscoverable and inimitable, therefore ultra secure!  smile

Now, if you take that chain and MD5 it, it will enforce the security.  big_smile


Hai.

Offline

 

#94 2012-06-24 13:29:02

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Scratch API 2.0

Hey fg123! We weren't actually looking for any more developers for this project, but I've worked with you a little before and LS97 and I reckon it would be lovely to have you on board. Is there a particular area you would like to work in for this? Perhaps you'd like to work on the login and verification functionality of the site since you seem to know a lot about that or help with the actual renderer? (Have you ever generated images with PHP before?). There is certainly still a lot to be done for the site support such as user registering and just storing images with accounts and such! LS97 and I both have PHP experience though, as well as JS and such so you're not alone with that!

To anyone else reading this, three developers is enough - I don't want this to get too big, sorry!


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#95 2012-06-24 13:38:22

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Scratch API 2.0

What are your thoughts as to using the new graphics and layout for the Scratch 2.0 website for this? I tried orangeifying the graphics I already had and it looked terrible  sad


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#96 2012-06-24 13:51:11

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Scratch API 2.0

For one, yes, I have a php generated rotating quote/text in my siggy right now!  tongue  It's being hosted on my site.  tongue

I reckon we should go for a minimalist Web 2.0 theme, but still keeping functionality and ease of use...


Hai.

Offline

 

#97 2012-06-24 13:53:14

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Scratch API 2.0

Agreed!


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#98 2012-06-24 13:54:45

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Scratch API 2.0

By the way, I used to love 000webhost and still use it today, but I've switched to x90x.net as they provide more hosting features.  tongue

And on another note, do you have skype?

Could you send me the details of what you've worked out so far? (like website details/ideas/mockups) I've read the 4 pages of the thread to get up onto speed, just need someone to confirm the ideas.

Last edited by fg123 (2012-06-24 13:56:38)


Hai.

Offline

 

#99 2012-06-24 14:02:22

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Scratch API 2.0

I left you a message on one of your projects, fg123.

Everything we've discussed is on this thread, we want to keep the project open-source so we're not using skype. I'll send you the login details to the site though!


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#100 2012-06-24 14:04:31

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Scratch API 2.0

Okey. I've emailed you. Would you like me to setup a SVN project? We could all commit our changes onto the SVN, then update it onto FTP when ready.

I presume you have SVN and perhaps a WAMP setup?


Hai.

Offline

 

Board footer