<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to T-PEN Proxy API</title><link>https://sourceforge.net/p/tradamus/wiki/T-PEN%2520Proxy%2520API/</link><description>Recent changes to T-PEN Proxy API</description><atom:link href="https://sourceforge.net/p/tradamus/wiki/T-PEN%20Proxy%20API/feed" rel="self"/><language>en</language><lastBuildDate>Wed, 27 May 2015 22:38:14 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/tradamus/wiki/T-PEN%20Proxy%20API/feed" rel="self" type="application/rss+xml"/><item><title>T-PEN Proxy API modified by Eric Smith</title><link>https://sourceforge.net/p/tradamus/wiki/T-PEN%2520Proxy%2520API/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Draft 2015-05-27&lt;/p&gt;
&lt;p&gt;Endpoint: /tpen?config&lt;br /&gt;
Method: GET&lt;br /&gt;
Request body:  none&lt;br /&gt;
Response content-type:  application/json&lt;br /&gt;
Response body:  {"tpen":"http://t-pen.org/TPEN"}&lt;br /&gt;
Status: 200 on success.&lt;br /&gt;
Comments: This method is used to retrieve the address of the T-PEN server being used by Tradamus, as configured in Tradamus' &lt;code&gt;web.xml&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Endpoint: /tpen&lt;br /&gt;
Method: GET or POST (as appropriate)&lt;br /&gt;
Comments:  Special endpoint for proxying calls to T-PEN.  The portion of the request following /tpen will be forwarded to the T-PEN instance configured in the "server" init-param entry of the Tradamus web.xml file.  Has been tested with the following T-PEN endpoints:&lt;/p&gt;
&lt;p&gt;   GET /tpen/login&lt;br /&gt;
   GET /tpen/projects&lt;br /&gt;
   GET /tpen/project/&lt;em&gt;projID&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Authentication can be done in two ways:  by cookie or by white-list.&lt;/p&gt;
&lt;p&gt;In the cookie method, first call the T-PEN login endpoint to get a JSESSIONID cookie and pass that to subsequent calls.&lt;/p&gt;
&lt;p&gt;The white-list method depends on the Tradamus user-name (typically an email address) also existing in T-PEN.  The line TRADAMUS=&lt;em&gt;TradamusIPAddress&lt;/em&gt; must be added to the T-PEN version.properties file, to tell T-PEN that requests from that Tradamus instance are allowed to bypass the usual T-PEN login process.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eric Smith</dc:creator><pubDate>Wed, 27 May 2015 22:38:14 -0000</pubDate><guid>https://sourceforge.netcc4c8066945d25dc90c9a03df90fae330da97431</guid></item></channel></rss>