Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got "Digest algorithm not supported: md5" on try use DIGEST #710

Open
mprosvitlyk opened this issue Oct 14, 2022 · 0 comments
Open

Got "Digest algorithm not supported: md5" on try use DIGEST #710

mprosvitlyk opened this issue Oct 14, 2022 · 0 comments

Comments

@mprosvitlyk
Copy link

As I understand it, when calling the ws.url().withAuth(username, password, WSAuthScheme.DIGEST) function, the MD5 encryption algorithm is selected by default, but it is not supported and I get an error. How can I force DIGEST to use SHA or allow configuration to use MD5?

The project uses:

scala - 2.13.8
play  - 2.8.16
jvm   - openjdk 11.0.16.1 2022-08-12 LTS

**UPD error log

[debug] p.s.a.o.a.n.r.NettyRequestSender - Digest algorithm not supported: md5
java.lang.UnsupportedOperationException: Digest algorithm not supported: md5
at play.shaded.ahc.org.asynchttpclient.Realm$Builder.ha1(Realm.java:504)
at play.shaded.ahc.org.asynchttpclient.Realm$Builder.newResponse(Realm.java:542)
at play.shaded.ahc.org.asynchttpclient.Realm$Builder.build(Realm.java:565)
at play.shaded.ahc.org.asynchttpclient.netty.handler.intercept.Unauthorized401Interceptor.exitAfterHandling401(Unauthorized401Interceptor.java:117)
at play.shaded.ahc.org.asynchttpclient.netty.handler.intercept.Interceptors.exitAfterIntercept(Interceptors.java:89)
at play.shaded.ahc.org.asynchttpclient.netty.handler.HttpHandler.handleHttpResponse(HttpHandler.java:78)
at play.shaded.ahc.org.asynchttpclient.netty.handler.HttpHandler.handleRead(HttpHandler.java:140)
at play.shaded.ahc.org.asynchttpclient.netty.handler.AsyncHttpClientHandler.channelRead(AsyncHttpClientHandler.java:78)
at play.shaded.ahc.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:377)
at play.shaded.ahc.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:363)
[debug] p.s.a.o.a.n.c.ChannelManager - Closing Channel [**secure ip]
[debug] p.s.a.o.a.n.h.HttpHandler - Unexpected I/O exception on channel [id: 0x27d4ea64, **secure ip ! **secure ip]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant