Thank you for work. I tested it.
1) For Standalone UniGUI App:
For request "AAuthData" from client browser, I need to send the headers to browser first .
For this in "OnHTTPCommand" i'm send headers by "AResponseInfo.CustomHeaders.Add" if "ARequestInfo.AuthExists =false". (see ServerModule.pas in attach)
If "ARequestInfo.AuthExists =true" then i need to run session with UniMainForm (or SecondForm).
My first question:
how i can to run UniMainForm from OnHTTPCommand() or from OnParseAuthentication() ?
2) For ISPAPI UniGUI App (extension for IIS)
In start my topic i'm write about ISAPI + IIS. But event OnParseAuthentication() [uni-1.90.0.1530] not worked in ISAPI App (for Indy only).
Also for ISAPI not need to send request for AuthData from browser - enough to setup "Windows Authentication - Enabled" and " Anonymous Authentication - Disabled" for WebApp in IIS. But if to make it - then the same error remains "Unsupported authorization scheme" .
In ISAPI App from Delphi (WebBroker) i can recieve AuthData in "WebModule1DefaultHandlerAction" by "Request.Authorization" or "Request.GetFieldByName('Authorization')" and try to check it (through API).
But "uniGUIISAPI.pas" not available in source (only hpp) and in help available only few property of TUniISAPI Class (ISAPI options for ServerModule).
So, my second question:
how i can self ParseAuthentication in ISAPI UniGUI App without error "Unsupported authorization scheme" ?
ServerModule.pas