Web Author HTTP headers

Post here questions and problems related to oXygen frameworks/document types.
takesson
Posts: 5
Joined: Tue Jan 16, 2018 4:18 pm

Web Author HTTP headers

Post by takesson »

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: 495
Joined: Thu Sep 04, 2014 4:22 pm

Re: Web Author HTTP headers

Post by cristi_talau »

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
mihaela
Posts: 490
Joined: Wed May 20, 2009 2:40 pm

Re: Web Author HTTP headers

Post by mihaela »

Hi,

We just released the version 22 of Web Author and it includes the feature you requested: the HTTP headers are accesible from the UserContext.

Here you can see the list of features available in the new version:
https://www.oxygenxml.com/xml_web_author/whats_new.html

Best Regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
Post Reply