Is there a reason you need to modify the resource itself? Why can't your authentication stuff be done in a custom authentication handler?
On Tue, Sep 25, 2012 at 7:49 PM, Rex Posadas <[email protected]>wrote: > Reference: https://wiki.jasig.org/display/CASUM/RESTful+API**** > > ** ** > > I would like to change the logic behind `POST /cas/v1/tickets` How would > I go about doing that? **** > > ** ** > > Basically, I need the logic to make an API call to a different software. > Depending on the response to that call I decide whether or not the user > authenticates correctly or not. **** > > ** ** > > I see that in reslet-servlet.xml there is a TicketResource object > associated to /tickets. Do I start there by inheriting it? Where do I > start? Am I looking at the write file?**** > > ** ** > > <bean id="root" class="org.restlet.ext.spring.SpringRouter">**** > > <property name="attachments">**** > > <map>**** > > <entry key="/tickets">**** > > <bean > class="org.restlet.ext.spring.SpringFinder">**** > > <lookup-method > name="createResource" bean="ticketResource" />**** > > </bean>**** > > ** ** > > ** ** > > Thanks in advance.**** > > ** ** > > Rex**** > > ** ** > > ** ** > > -- > You are currently subscribed to [email protected] as: > [email protected] > > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-user > > -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
