Web Author HTTP headers

Post here questions and problems related to oXygen frameworks/document types.
takesson
Posts: 5

Web Author HTTP headers

Wed Jan 31, 2018 1:30 pm

Hi,

The Web Author supports Cookies (the Cookie HTTP header) as a mechanism to forward authentication to the CMS plugin. They are exposed by UserContext.

Would it be possible to get other headers from the user request?

For example, when using Basic Authentication the authentication is located in the "Authorization" header.

Another example, it might be interesting to access the "Accept-Language" header, either for messages generated by the CMS plugin but also for getting localized error messages from the CMS server when CMS-plugin requests are denied.

Thanks.
cristi_talau
Posts: 135

Re: Web Author HTTP headers

Thu Feb 01, 2018 10:06 am

Hello,

These are good ideas. I registered a feature request for this.

Just one comment regarding the "Accept-Language" header. Web Author has its own language settings, we plan to send that value when we call the REST API besides the value provided by the user's browser.

Best,
Cristian

Return to “SDK-API, Frameworks - Document Types”

Who is online

Users browsing this forum: No registered users and 0 guests