Hi Christoph
Thank you for your quick reply!
I have created this class:
[code]package ch.ff;
public class AccessTokenClientRequestFilter implements
javax.ws.rs.client.ClientRequestFilter {
@Override public void filter(ClientRequestContext requestContext)
throws IOException {
String accessToken = "blahblah";
requestContext.getHeaders().add("Authorization", "Bearer " +
accessToken);
}
}[/code]
but now I do not know how to configure this class.
I am trying to create a new property below the "clientFactoryClass" property
(see Example: REST client configuration,
https://documentation.magnolia-cms.com/display/DOCS/REST+client+module#RESTclientmodule-Configuration)
with
Node name: components (since I am using version 1.1)
value: ch.ff.AccessTokenClientRequestFilter (also tried
[ch.ff.AccessTokenClientRequestFilter] and
["ch.ff.AccessTokenClientRequestFilter"])
but I see that the Header is not included in my HTTP request.
What value do I need to set?
Thank you in advance.
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=e2f0f91a-351a-47fb-959b-713deeb14aea
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------