Git Product home page Git Product logo

authorizeextension's Introduction

This is extension for SmartFoxServer.

It allow for guest to login or for registered users.

You must change the database name in the AuthorizeExtension.java.

mongo = new Mongo("localhost");
db = mongo.getDB( "games_development" );
users = db.getCollection("users");

Do what you want :-)

It return the generate session back to the Flash API Client, use it for whatever you want later in the game.

It only check against the DB if the user enter password.

This is how my collection looks like.

{ "_id" : ObjectId("4e4c1b6853aaa95c3dab8ac9"), "nickname" : "jamal", "email" : "[email protected]", "password_digest" : "b80587d3ea099bba190ed8111f38121dc3514460", "session" : "2E931AAA9086D3D81E2C640F667B38BD" }
{ "_id" : ObjectId("4e4c5580c2e6d19c17593612"), "nickname" : "test", "session" : "16E9C076E1BC490363EB4690317AC23C", "is_guest" : true }

You can find me at SmartFoxServer.com forum if you need any help :D

Thanks :)

authorizeextension's People

Contributors

jamalsoueidan avatar

Stargazers

Trường Đỗ avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.