Any policy which will do the "digest auth" authentication mechanism in Apigee?

Hello,

I am proxying a backend url which requires the "digest auth" credentials to be passed.

digest auth is a two step process done by any browser. i can try it with service callout, but it would add on to the number of policies and complicate the proxy.

Is their any policy by which i can do this?

Or if I go for service callout policy I am failing at the second step which requires the MD5 algorithm to be done on few parameters. tried in javascript but no luck. Is their any sample code which will do the MD5 algorithm?

Any help much appreciated.

Thanks in advance,

Prashanthi

2 2 683
2 REPLIES 2

I think you will have to do it in nodejs, check this out

https://github.com/simme/node-http-digest-client

node request module seem to support it, but i have not found a sample

It should be pretty easy to do in Javascript, but if you are handy in Java, it's also easy to do there, in a Java callout. I haven't implemented this, but if you still need it, let me know by commenting here (And mention @Dino ), and I will write the Java code for you. @Prashanthi