I'm sorry* if I write in translated English.
With Delphi XE8 I imported a
SOAP WSDL and use the HTTPRIO component For use authentication:
Delphi-Quellcode:
procedure HTTPRIO1HTTPWebNode1BeforePost(const HTTPReqResp: THTTPReqResp;
Data: Pointer);
var
auth: String;
FUserName, FPassword : string;
begin
FUserName:=UtenteTS;
FPassword:=PassTS;
auth := 'Authorization: Basic ' + TNetEncoding.Base64.Encode(FUserName + ':' + FPassword);
HttpAddRequestHeaders(Data, PChar(auth), Length(auth), HTTP_ADDREQ_FLAG_ADD);
end;
Works well.
The problem is: when a Smart Card Reader with a digital signature card is inserted in the PC, during authentication it communicates with the smart card, opening a PIN request window.
image:
https://i.stack.imgur.com/puJ7E.jpg
I don't want this, i want to prioritize authentication through HTTPRIO1HTTPWebNode1BeforePost !
Note:
Run debug, HTTPRIO1HTTPWebNode1BeforePost, it is processed and then communication with the smart card is started. How can I disable Smart Card Reader reading?
The card with the digital signature I need connected to the PC because my program has to digitally sign documents.