hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (HTTPCLIENT-1793) Digest authentication - bad format of URI param
Date Wed, 07 Dec 2016 12:17:58 GMT

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15728625#comment-15728625
] 

Oleg Kalnichevski edited comment on HTTPCLIENT-1793 at 12/7/16 12:17 PM:
-------------------------------------------------------------------------

@Michal
This is what section 3.2.2 of RFC 2617 states:

{noformat}
   digest-uri
     The URI from Request-URI of the Request-Line; duplicated here
     because proxies are allowed to change the Request-Line in transit.
{noformat}

Could you please point me at a passage in RFC 2617 stating that the digest-uri attribute should
use/contain a relative uri?

Oleg




was (Author: olegk):
@Michal
This is what section 3.2.2 of RFC 2617 states:

{noformat}
   digest-uri
     The URI from Request-URI of the Request-Line; duplicated here
     because proxies are allowed to change the Request-Line in transit.
{noformat}

Could you please point me at a passage in RFC 2617 stating that the uri attribute should use/contains
a relative uri?

Oleg



> Digest authentication - bad format of URI param 
> ------------------------------------------------
>
>                 Key: HTTPCLIENT-1793
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1793
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient (classic)
>    Affects Versions: 4.5.2
>            Reporter: Michal Čermák
>
> There is a trouble when using http client digest authentication. The final header created
by DigestScheme.java encodes/containst absolute uri, but it should use/contains relative uri
as described here
> https://tools.ietf.org/html/rfc2617#section-3.2.2
> Example header - as is
> Authorization: Digest username="username", 
>                realm="TTS-Server-3.0", 
>                nonce="6abecfe8248be3bb335601bc5064dsa227473", 
>                uri="http://services.speechtech.cz/tts/v3/synth", 
>                response="6c99f1cbdasd904329f85a060aa75b3777e427f", 
>                qop=auth, nc=00000001, 
>                cnonce="1b35dsa6d523b7805fdsfdc4", algorithm=MD5
> Example header -  to be
> Authorization: Digest username="username", 
>                realm="TTS-Server-3.0", 
>                nonce="6abdasdecfe824dasd8be3bb335601bc5064a227473", 
>                uri="/tts/v3/synth", 
>                response="6c99f1cdsb904329dsadadf85a060aa75b3777e427f", 
>                qop=auth, nc=00000001, 
>                cnonce="1b35dsa6d523bdada7805fdsfdc4", algorithm=MD5
> Sample code implementation
> http://www.baeldung.com/resttemplate-digest-authentication



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message