<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CAS SSO with Activiti REST API in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cas-sso-with-activiti-rest-api/m-p/160831#M114790</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot for your quick answer! Apologies if my follow-up questions are stupid or misguided (Activiti is a very new friend of mine). What are the semantics of throwing an exception in requestRequiresAuthentication? In other words, what would the observed effect be? Also, how would we proceed to implement our custom authorization (using LDAP group membership) if requestRequiresAuthentication always returns false - my understanding is that isRequestAuthorized will never be called in that scenario? Once again, I am sorry that I'm asking from a perspective of ignorance here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Einar&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Oct 2013 10:56:24 GMT</pubDate>
    <dc:creator>einarwh</dc:creator>
    <dc:date>2013-10-09T10:56:24Z</dc:date>
    <item>
      <title>CAS SSO with Activiti REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cas-sso-with-activiti-rest-api/m-p/160829#M114788</link>
      <description>Hi,We're building a multi-component web application that communicates with Activiti using the REST API. We'd like to do two things:1. Replace the default basic HTTP authentication, and rely on Tomcat to handle authentication using CAS SSO. We obviously still need a notion of identity for the user -</description>
      <pubDate>Tue, 08 Oct 2013 12:50:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cas-sso-with-activiti-rest-api/m-p/160829#M114788</guid>
      <dc:creator>einarwh</dc:creator>
      <dc:date>2013-10-08T12:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: CAS SSO with Activiti REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cas-sso-with-activiti-rest-api/m-p/160830#M114789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My first thought is that it should be just fine if you implement your own RestAuthenticator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You should implement the requestRequiresAuthentication method and always return false.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That prevents the REST layer from calling the Activiti identity management.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the requestRequiresAuthentication method you could check the SSO token and throw an exception if it's invalid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also make sure to set the user on the request, because some REST services need that user object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 09:01:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cas-sso-with-activiti-rest-api/m-p/160830#M114789</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-10-09T09:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: CAS SSO with Activiti REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cas-sso-with-activiti-rest-api/m-p/160831#M114790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot for your quick answer! Apologies if my follow-up questions are stupid or misguided (Activiti is a very new friend of mine). What are the semantics of throwing an exception in requestRequiresAuthentication? In other words, what would the observed effect be? Also, how would we proceed to implement our custom authorization (using LDAP group membership) if requestRequiresAuthentication always returns false - my understanding is that isRequestAuthorized will never be called in that scenario? Once again, I am sorry that I'm asking from a perspective of ignorance here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Einar&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 10:56:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cas-sso-with-activiti-rest-api/m-p/160831#M114790</guid>
      <dc:creator>einarwh</dc:creator>
      <dc:date>2013-10-09T10:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: CAS SSO with Activiti REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cas-sso-with-activiti-rest-api/m-p/160832#M114791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yes, as the javadoc says, if the "requestRequiresAuthentication" returns false, the request is considered to be free of any further DEFAULT authentication (including calls to isRequestAuthorized).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since the calls are done from restlet, you can throw a ResourceException(…) with a status-code and a description. The rest-error handling that is in place will render a nice response-JSON with the message in it (see ActivitiStatusService) and the HTTP-response code will be the one you provide in the ResourceException. In your case, that will be a UNAUTHORIZED or REQUIRES_AUTHENTICATION, depending on what your SSO logic found out about the request…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 13:02:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cas-sso-with-activiti-rest-api/m-p/160832#M114791</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-10-09T13:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: CAS SSO with Activiti REST API</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cas-sso-with-activiti-rest-api/m-p/160833#M114792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a lot, I really appreciate the kind assistance and helpful advice. I think it's very neat that I can use HTTP response codes in that manner. Just to make sure: I'll just ignore the isRequestAuthorized call as such, and implement whatever custom authorization I need to do in the requestRequiresAuthentication call itself. Have I understood correctly?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Einar&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 13:25:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cas-sso-with-activiti-rest-api/m-p/160833#M114792</guid>
      <dc:creator>einarwh</dc:creator>
      <dc:date>2013-10-09T13:25:47Z</dc:date>
    </item>
  </channel>
</rss>

