05-01-2023, 08:46 PM
I am currently trying to integrate the new OAuth2 protocol into my project, but I am facing difficulties in finding the correct approach. Typically, when a user navigates to our web address, I check in the "IWServerControllerBaseGetMainForm" method if they have a cookie set, indicating they are already logged in and have chosen to stay logged in.
There are two possible scenarios:
My question is, how can I check in the server controller whether the user is already logged in using their Google credentials so that I can set the "vMainForm" accordingly in "IWServerControllerBaseGetMainForm"?
Thanks!
There are two possible scenarios:
- If the cookie is not found or has expired, I set the "vMainForm" to the login form, "TfrmLogin", and prompt the user to log in again.
- If the cookie is present and valid, I set the "vMainForm" to the user menu, "TformUserMenu", and the user is presented with the main menu without having to log in again.
My question is, how can I check in the server controller whether the user is already logged in using their Google credentials so that I can set the "vMainForm" accordingly in "IWServerControllerBaseGetMainForm"?
Thanks!