Overview of login flow

The below flow-chart outlines how the client (browser) and Appframe server interact during authentication.
Also, see the LoginHandler" article for details about the server side (LoginHandler) part.

Web Browser

URL to some WebApp
that require auth.
Login page
JavaScript in login page
Requests details
(Accept JSON)
JavaScript builds login form based on JSON (Current Authentication State)
User fills in parameters
and submit

Appframe Web server side

Auth OK?
LoginHandler
Not POST
(Accepts JSON=No)
Ok. Render requested page
and return to browser
LoginHandler
Not POST
(Accepts JSON=Yes)
Outputs AuthenticationState
LoginHandler
Read parameters
Process Steps
AuthenticationState changes
LoginHandler Authenticated?
Ok. Render originally
requested page and
return to browser