Deben Oldert 2927a418dc Small bug fixed 10 năm trước cách đây
..
export df8faf2ed2 App update 10 năm trước cách đây
APS.java 8e64912784 Add unregister 10 năm trước cách đây
Download.java cf3986eda3 First creation 10 năm trước cách đây
ErrorCode.java b39989e51f delete extra line 10 năm trước cách đây
Function.java 7243471876 IP update 10 năm trước cách đây
LDAP.java dfb2f7365c Bug fixes 10 năm trước cách đây
MAIL.java 2927a418dc Small bug fixed 10 năm trước cách đây
README.md 625139c74c First upload 10 năm trước cách đây
SAS.java 8da327eb8e Add unregister, bug fixes 10 năm trước cách đây
SQL.java cfcd8eaba1 Updated 10 năm trước cách đây

README.md

SAS/APS server

The SAS and APS server are both running a JAVA servlet. I combined them in one .war file.
The servers ALWAYS respond with a JSON answer and ONLY accept a POST JSON request.

SAS

The SAS server is open to the internet because user must be able to send there connection response to the server.
The servet takes care of the following:

  • Disallow GET requests
  • Validate incoming POST JSON
  • Forwards Authentication request to APS
    • If response contains user info then a PUSH notification can be send to the registerd device
    • If response does not contain user info then send an email with the steps to install and register the app/device
  • Forwards register request to APS and forward APS response to device
  • Forward unregister request to APS
  • Handles the confirm request from the device (approved, cancelled)

APS

The APS server validates the user credentials and is the connection to the LDAP directory.
The server handles the following:

  • Disallow GET requests
  • Validate incoming POST JSON
  • Answers authentication requests
  • Sends email messages
  • Registers devices in the LDAP directory
  • Unregisters devices in the LDAP directory