rmg / space.chat

A trivial Websockets chat server/client
http://space-chat.herokuapp.com/
1 stars 0 forks source link

Nickname reservations #9

Open rmg opened 12 years ago

rmg commented 12 years ago

Maybe tied to a cookie for simple auto-requesting a nick. Could generate a unique client ID and reserve the nick for that client ID for a time, and have that time extend every time the users connects.

Maybe tie the nick to an OpenID credential and store the reserved nick and the openid auth token in a K/V store like Redis or something.

rmg commented 12 years ago

This looks like the best option for OpenID in node: https://github.com/havard/node-openid

rmg commented 12 years ago

Connecting to a free shared Postgres DB: http://devcenter.heroku.com/articles/node-js#using_a_postgres_database Connecting to a free non-persisted Redis instance: http://devcenter.heroku.com/articles/node-js#using_redis