AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Netzwerke Delphi Authentication mit Indy Http Client
Thema durchsuchen
Ansicht
Themen-Optionen

Authentication mit Indy Http Client

Ein Thema von Shark99 · begonnen am 30. Jan 2013 · letzter Beitrag vom 2. Feb 2013
Antwort Antwort
Seite 2 von 2     12   
Shark99

Registriert seit: 16. Mai 2007
403 Beiträge
 
#11

AW: Authentication mit Indy Http Client

  Alt 30. Jan 2013, 11:47
Hast Recht! Es ist Digest. Wie verfahre ich nun?
  Mit Zitat antworten Zitat
mjustin

Registriert seit: 14. Apr 2008
3.006 Beiträge
 
Delphi 2009 Professional
 
#12

AW: Authentication mit Indy Http Client

  Alt 30. Jan 2013, 11:55
Hast Recht! Es ist Digest. Wie verfahre ich nun?
Dieser Thread hilft eventuell weiter:

http://forums2.atozed.com/viewtopic....20812&start=10
Michael Justin
  Mit Zitat antworten Zitat
Shark99

Registriert seit: 16. Mai 2007
403 Beiträge
 
#13

AW: Authentication mit Indy Http Client

  Alt 30. Jan 2013, 13:25
Danke für den Tip, aber ich hab schon IdAllAuthentications in uses drin, und es klappt trotzdem nicht.
  Mit Zitat antworten Zitat
Shark99

Registriert seit: 16. Mai 2007
403 Beiträge
 
#14

AW: Authentication mit Indy Http Client

  Alt 1. Feb 2013, 23:02
Ich habe zwei Eventhandler hinzugefügt um besser zu erkennen was während des Connects passiert.
Delphi-Quellcode:
procedure Auth(Sender: TObject; Authentication: TIdAuthentication; var Handled: Boolean);
procedure AuthSelect(Sender: TObject; var AuthenticationClass: TIdAuthenticationClass; AuthInfo: TIdHeaderList);

...

IdHTTP1.OnAuthorization := Auth;
IdHTTP1.OnSelectAuthorization := AuthSelect;
Wenn OnSelectAuthorization ausgelöst wird

ist AuthenticationClass TIdDigestAuthentication,

AuthInfo hat den Inhalt:

Digest algorithm="MD5", realm="Forbidden", qop="auth", opaque="1f4ffff678e1ac3ca5a49a44001fb374", nonce="1b2a0979d3adff70d59e1d11f6315df1"

Jedoch wird OnAuthorization erst gar nicht ausgelöst!
  Mit Zitat antworten Zitat
mjustin

Registriert seit: 14. Apr 2008
3.006 Beiträge
 
Delphi 2009 Professional
 
#15

AW: Authentication mit Indy Http Client

  Alt 2. Feb 2013, 10:19
Auf Stackoverflow fand ich gerade einen ähnlichen Fall.

Aus der Antwort von Remy Lebeau:

Zitat:
You need to enable the hoInProcessAuth flag in the TIdHTTP.HTTPOptions property. It is disabled by default. Without that flag, TIdHTTP.Get() will not send a second HTTP request specifying the Digest credentials in reply to the server's 401 response. It will simply exit and expect you to handle the 401 response and send a new request yourself as needed.
Michael Justin
  Mit Zitat antworten Zitat
Shark99

Registriert seit: 16. Mai 2007
403 Beiträge
 
#16

AW: Authentication mit Indy Http Client

  Alt 2. Feb 2013, 10:38
Das war ein Arbeitskollege! Es läuft nun!
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 2 von 2     12   


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 09:30 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz