Page 1 of 1

Web Author HTTP headers

Posted: Wed Jan 31, 2018 1:30 pm
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.

Re: Web Author HTTP headers

Posted: Thu Feb 01, 2018 10:06 am
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

Re: Web Author HTTP headers

Posted: Fri Feb 14, 2020 12:30 pm
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