play-ws icon indicating copy to clipboard operation
play-ws copied to clipboard

Add support for Digest RFC7616

Open jianwuzhao opened this issue 1 year ago • 4 comments

https://datatracker.ietf.org/doc/html/rfc7616#page-5

jianwuzhao avatar Feb 24 '25 04:02 jianwuzhao

Is this what you are looking for:

  • Scala: https://www.playframework.com/documentation/3.0.x/ScalaWS#Request-with-authentication
  • Java: https://www.playframework.com/documentation/3.0.x/ScalaWS#Request-with-authentication

?

mkurz avatar Mar 28 '25 14:03 mkurz

This is not what I am looking for, now I am checking the source code

https://github.com/AsyncHttpClient/async-http-client/blob/main/client/src/main/java/org/asynchttpclient/Realm.java

play.shadd.ahc.org.asynchttpclient The newResponse method in Realm only supports md5 related implementations, but according to the requirements of the Digest RFC7616 protocol, it needs to support SHA-256 and SHA-512/256 algorithms.

jianwuzhao avatar Apr 07 '25 06:04 jianwuzhao

Can we add custom methods to implement related functions without modifying the source code ? https://github.com/apache/httpcomponents-client/blob/master/httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/DigestScheme.java

jianwuzhao avatar Apr 07 '25 06:04 jianwuzhao

wait https://github.com/AsyncHttpClient/async-http-client/issues/2068

jianwuzhao avatar May 12 '25 02:05 jianwuzhao