OfflineMode WebAuth with offline inventory and simple API - MySql & PHP

Discussion in 'Archived: Plugin Requests' started by jackks, Jan 3, 2012.

  1. Offline

    jackks

    Hello.
    I'm an experienced PHP programmer and I'm looking for someone who can write in Java safe, reliable and clean code.

    The problem with current auth plugins is that none of them is flexible enough. Those guys tell me how my database should look, they write forum plugins in java instead of giving us a aimple API so we can desing database our way etc. Those plugins lack basic functionality, and very often its inproperly documented or it looks like shit and does not fit anything. Or the plugin is dead and unmaintained.

    How the plugin should look ?

    Less is better. Less code in java means more flexibility. Generally I want something like:
    http://dev.bukkit.org/server-mods/authme/
    plus:
    - user should be able to register his username + email
    - instead of MySql make it use API described below

    API:

    str status = OK, FAILED
    str message - message displayed to a user

    Check if a username exists:
    example.com/api/user
    params {str username, str ipaddress}
    response: json {str status, str message}

    Register new user:
    example.com/api/user/register
    params {str username, str email, str password, str ipaddress}
    response: json {str status, str message}

    Login (get inventory):
    example.com/api/user/login
    params {str username, str password (optional), str ipaddress}
    response: json {str status, str message, array inventory}

    Logout (notify web service and save inventory):
    example.com/api/user/logout
    params {str username, str type [logout, timeout], array inventory}
    response: json { str status, str message}


    Example registration scenario:

    1. User connects to our MC server.
    2. plugin makes an api call:
    example.com/api/user?username=josh&ipaddress=127.0.0.1
    Response:
    status: failed, message: "Please register !"
    3. User types /register 123 a@b.c
    4. plugin calls:
    example.com/api/user/register?username=josh&password=123&email=a@b.c&ipaddress=127.0.0.1
    Response:
    status: OK, message: "Hi Josh ! Thanks for joining us !"

    Who wants to help ?
     
  2. Offline

    Mrchasez

    I may be interested.
    Ill think about it
     
  3. Offline

    jackks

    API and the whole web-services-part coding will be assigned to me of course and can be done including documentation by the end of this week.
    I'm in a little rush.

    UPDATE
    I wrote it. It's still in development but all main features are there.
    Topic closed.
     

Share This Page