Does Net.HTTP authenticate require a realm to be returned?

New Here ,
Aug 23, 2017

Copy link to clipboard

Copied

I'm sending a POST to a server.  I noticed, using fiddler, acrobat sends the request twice. Once without the authentication headers and one with the authentication headers.  I have two servers, a test server, which sends back a realm with the 402, and a prod server that has no realm.  Acrobat will send the request again with the proper auth headers for the test server (i think because there's a realm), but will not send another request to the prod server, I'm assuming because it lacks a realm.

I can't find any other reason for this except to assume acrobat wants to know what realm the auth will be used in.  I tested this in POSTMAN, it works for both servers, but the authentication header is sent right away (no need for two calls).

TOPICS
Acrobat SDK and JavaScript

Views

54

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Does Net.HTTP authenticate require a realm to be returned?

New Here ,
Aug 23, 2017

Copy link to clipboard

Copied

I'm sending a POST to a server.  I noticed, using fiddler, acrobat sends the request twice. Once without the authentication headers and one with the authentication headers.  I have two servers, a test server, which sends back a realm with the 402, and a prod server that has no realm.  Acrobat will send the request again with the proper auth headers for the test server (i think because there's a realm), but will not send another request to the prod server, I'm assuming because it lacks a realm.

I can't find any other reason for this except to assume acrobat wants to know what realm the auth will be used in.  I tested this in POSTMAN, it works for both servers, but the authentication header is sent right away (no need for two calls).

TOPICS
Acrobat SDK and JavaScript

Views

55

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Aug 23, 2017 0

Have something to add?

Join the conversation