TSphinxLogin.Login Method
Starts the process to login to the application.
Remarks
If the user is already logged in, then Login method just fires the OnUserLoggedIn event with the information about the logged user. If the user is not logged in, the user default browser is launched to open the Sphinx login page. From there user can authenticate (by entering login credentials), or create a new account (if enabled), recover password, confirm registered e-mail, among other operations. If the user effectively logs in by providing credentials, then Sphinx server redirects the browser back to localhost, where an internal HTTP server is running, listening in a random TCP port, and will process the request. The internal HTTP server will process the authorization code provided in the redirect URL and use it to request the identity and access tokens to the Sphinx server. Once the tokens are retrived, they are saved in memory, which effectively indicates the user is logged in. Then the event OnUserLoggedIn will be fired providing all the information about the logged user.
Syntax
Unit: Sphinx.Login
procedure TSphinxLogin.Login;