Changes between Version 1 and Version 2 of AccountServer


Ignore:
Timestamp:
04/30/20 16:38:57 (5 years ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AccountServer

    v1 v2  
    11= AccountServer
    22
    3 The AccountServer is a very lightweight apache tomcat application that builds on top of the [wiki:AccountManager]
     3The AccountServer is a very lightweight apache tomcat application that builds on top of the [wiki:AccountManager] to build a set of web pages allowing internet based account handling
     4
     5=Core functionality
     6The core of the AccountServer is the Account servlet. It has four modes
     7 * GET: this returns a json structure {"name":username, "id":userid} with the current user name and id. It returns error 500 if the user is not logged in.
     8 * POST: this is a login request. Extra data to be send is a NamePassword structure which basically is {'name':XXX, 'password':YYY} json structure. As long as the browser does not start a new session (this depends on the browser but usually this means "staying on the same page") the user stays logged in.
     9* PUT: this is a register request. Extra data to be send is a NamePasswordEmail structure which basically is {'name':XXX, 'password':YYY, 'email':ZZZ} json structure. The email can be empty. This creates a new account if the name.
     10* DELETE. this is a reset-password request. This takes just the user name (string) and mails the user a new password. This fails with error 500 if the user does not exist or did not set his email properly.
     11