Web Author HTTP headers
Posted: 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.
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.