You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Julian Reschke (JIRA)" <ji...@apache.org> on 2016/12/07 11:32:58 UTC

[jira] [Commented] (HTTPCLIENT-1793) Digest authentication - bad format of URI param

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

Julian Reschke commented on HTTPCLIENT-1793:
--------------------------------------------

FWIW, the relevant RFC nowadays is https://tools.ietf.org/html/rfc7616.

> 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