hc-dev mailing list archives

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

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

Mike edited comment on HTTPCLIENT-1793 at 12/8/16 7:57 AM:
-----------------------------------------------------------

You are right, it seems there is no passage with this. So the problem will be probably somewhere
else.

Thank you 


was (Author: michalcermak):
You are right, it seems there is no passage with this. So the problem will be probably somewhere
else.

> 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: Mike
>
> 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