Jump to content

stevewong

uniGUI Subscriber
  • Posts

    29
  • Joined

  • Last visited

  • Days Won

    5

stevewong last won the day on August 27 2023

stevewong had the most liked content!

Recent Profile Visitors

1626 profile views

stevewong's Achievements

Newbie

Newbie (1/4)

25

Reputation

  1. 👍 interesting post, I do think chatGPT (or othere AI) will take up 70% of my job in the near future !
  2. Below is what I write in another post, hope that help. ******************* In order to use TNetHttpCleint under IIS ISAPI environment, you need to do the following : Under Application Pool -> your application -> Advance Setting -> Process Mode -> Identity -> Built in Account -> Network service Then under the web application's Authentication Setting -> make Application Pool identity the default option. (using specific user : IUSR will cause cause an exception whenever you call TnetHttpClient.create) I don't know why, but I hope this information helps.
  3. My experience is to change the default user in IIS to a user have network privilege
  4. Updated login demo, now works for Google, Azure and Twitter, enjoy ! SignIn_Demo.zip
  5. Hi Leons, You need to do a redirect under server module -> server message -> termination template. The redirect url will be your app's original link without any parameters.So when you close you app (quit/close), it will redirect you to your original login page (no parameter at the end) Steve
  6. Hi Fred, Dominique Good idea ! Will work on Twitter later, but my problem is : I don't have a Twitter account 😅 Anyway I will open a Twitter account and study Twitter's OAuth flow. Steve
  7. Updated login demo, added sign in with Azure, enjoy ! SignIn_Demo.zip
  8. Tested it on hyper server, will post sign in with o365 later today.
  9. This is a demo project to implement the "Sign in with Google" button using Unigui, enjoy ! LoginForm - Sign_in_with_Google.zip
  10. I finally figured it out ! To make a RESTFUL call, you need to use the component NetHTTPClient. In order to use TNetHttpCleint under IIS ISAPI environment, you need to do the following : Under Application Pool -> your application -> Advance Setting -> Process Mode -> Identity -> Built in Account -> Network service Then under the web application's Authentication Setting -> make Application Pool identity the default option. (using specific user : IUSR will cause cause an exception whenever you call TnetHttpClient.create) I don't know why, but I hope this information helps. Steve
  11. Hi, I was going to make a sign in with google button to my login form. I then get into trouble. My problem is : I was not able to issue RESTFUL call under windows IIS hyper server environment. I have attached my code, it is a copy from the demo login form, when the user click login, it will do a REST request to a website to get something. The program work perfectly OK when I run it as a standalone exe. But when I deploy is to the hyper server, the program got an exception : Signin_App.exe: 00001530: 10:26:48 [TUniServerModule]:Server First Init. Signin_App.exe: 00001530: 10:26:48 [TUniServerModule]:Node Id = 2 Signin_App.exe: 00001530: 10:26:48 [TUniServerModule]:Node MaxSessions = 250 Signin_App.exe: 00001530: 10:26:48 [TUniServerModule]:Starting HTTP Server on Port: 19686... Signin_App.exe: 00001530: 10:26:48 [TUniServerModule]:HTTP Server Started on Port: 19686 Signin_App.exe: 000022B8: 10:26:49 [172.16.2.18]:ENetHTTPClientException : Error obtaining session handle : Addr: $00A0BB16 Signin_App.exe: 0000222C: 10:27:46 []:Node-2, Terminate Started. Signin_App.exe: 00001530: 10:27:47 [TUniServerModule]:Shutting Down Server. Signin_App.exe: 00001530: 10:27:47 [TUniServerModule]:Stopping HTTP Server. Signin_App.exe: 00001530: 10:27:47 [TUniServerModule]:HTTP Server Stopped. Signin_App.exe: 00001530: 10:27:47 [TUniGUISessionManager]:Terminating Session manager. Signin_App.exe: 00001530: 10:27:47 [TUniGUISessionManager]:Stopping Cache Eraser... Signin_App.exe: 00001530: 10:27:47 [TUniGUISessionManager]:Cache Eraser Stopped. Signin_App.exe: 00001530: 10:27:47 [TUniGUISessionManager]:Destroying Worker Threads. Signin_App.exe: 00001530: 10:27:47 [TUniGUISessionManager]:Session manager terminated. Signin_App.exe: 00001530: 10:27:48 [TUniServerModule]:Server Shutdown Completed. Can anyone help me to solve this ? LoginForm.zip
  12. I tried with Indy ThttpClient. the code then stopped at the statement http.post(.....), with an invalid address exception. The same set of http.post(...) code was working fine under VCL. so I do suspected that I can not use ThttpClient or TNetHTTPclient in the hyperserver + IIS enviroment.
  13. Hi, Can anyone tell me how to use TNetHTTPClient in unigui app. I was trying to make some RESTFUL call in my unigui app. However, whenever I try to do : http := TNetHTTPClient.create; in my unigui app, I got an exception : Net HTTPClientException : Error obtaining session handle I then try to put the TNetHTTPClient component into mainmodule so that I do not need to create it. However, the unigui app give me a blank screen when I try to access the unigui page (e.g. https//x.com/app.dll). I was using Delphi 10.3.2, web server is windows server IIS 7, unigui version 1.90.0.1511 Or can anyone tell me to issue Restful call within the unigui app, thanks !
  14. Follow that post did help, thanks Sherzod !
  15. Can anyone tell me how to implement the "Sign in with Google" button in unigui Apps ?
×
×
  • Create New...