CS
08/07/2023, 12:02 PMAleksei Tirman [JB]
08/07/2023, 12:12 PMAuthorization header?CS
08/07/2023, 1:48 PMEmil Kantis
08/07/2023, 5:24 PMAuthorization: Basic ${base64(username:password)} . Sounds like you're missing the Basic prefixAleksei Tirman [JB]
08/08/2023, 6:42 AMAuth plugin but the credentials is sent only on receiving 401 from the server because sendWithoutRequest cannot be configured for this provider. You can file an issue if you need to configure sendWithoutRequest for the Digest auth provider.CS
08/08/2023, 9:32 AMAleksei Tirman [JB]
08/08/2023, 12:51 PMCS
08/08/2023, 1:04 PMGET <http://x.x.x.x/rpc/Shelly.GetStatus>
Content-Type: application/json
Authorization: Digest user password
plain user and pwd, nothing elseAleksei Tirman [JB]
08/09/2023, 7:09 AMGET <http://httpbin.org/digest-auth/auth/user/pass>
Authorization: Digest user pass
then the Authorization header would be the following:
Authorization: Digest username="user", realm="<mailto:me@kennethreitz.com|me@kennethreitz.com>", nonce="c134fcb2326d86828e5ad41527df8c61", uri="/digest-auth/auth/user/pass", response="89d28530b5a4c9d773643d6fb47840d5", qop=auth, nc=00000001, cnonce="b8c1b9f4148dc4a2", algorithm=MD5, opaque="44c705a09470b57255d7f695e4ca5952"
Also, IDEA makes two requests the same way as Ktor.CS
08/09/2023, 7:52 AMAleksei Tirman [JB]
08/09/2023, 7:53 AMCS
08/09/2023, 10:49 AMusername="admin",
nonce="64d35762",
cnonce="0cc6deb9c12a109f"
KTOR
username=admin,
nonce=64d3601c,
cnonce=f66ec33f97fde69f,
So I’m really puzzled, and I can’t understand what’s wrongAleksei Tirman [JB]
08/09/2023, 10:50 AMCS
08/09/2023, 11:03 AMCS
08/09/2023, 11:06 AMcnonce="426f146b2709c6cb", algorithm=SHA-256
I’ve set it in the digest() config, it is used, but not sent.
This is the only difference I can spot. Is there a way to force it ?CS
08/09/2023, 11:20 AMCS
09/02/2023, 10:16 AM