Announcement Announcement Module
Collapse
No announcement yet.
Resource Server: who calls the ResourceServerTokenServices implementation? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Originally posted by Dave Syer View Post
    See the sparklr2 sample for an example. Or any of the Spring Security samples.
    BTW I've looked at the Sparklr2, and I don't see <oauth:resource-server> neither in applicationcontext.xml nor in springServlet.xml...

    Comment


    • #17
      Neither of those files exists at the moment (or in M6 that I remember). Are you sure you don't want to update to the latest codebase? Those logs you picked out are normal (the filter is not a controller). We need to see what happens when you hit your protected resource.

      Comment


      • #18
        Originally posted by Dave Syer View Post
        We need to see what happens when you hit your protected resource.
        Dave - thanks.
        I got it. My bad. after trying to hit the resource, I got this:

        ************************************************** **********

        Request received for '/welcome':

        org.apache.catalina.connector.RequestFacade@13332e 85

        servletPath:/welcome
        pathInfo:null

        Security filter chain: [] empty (bypassed by security='none')


        ************************************************** **********

        23 Sep 2012 09:27:18,422 [http-bio-443-exec-1] DEBUG security.web.FilterChainProxy - /welcome has an empty filter list
        So I understood that my filter chain is disabled. I went to the beans.XML and saw that I had there:

        <security:http pattern="/welcome" security="none"/>

        After commenting it out, chain is working and my filter is being called.

        Thanks, and sorry for the bother :-)

        __________________________________________________ ___________________
        Last edited by OhadR; Sep 23rd, 2012, 03:41 AM. Reason: found the problem!

        Comment

        Working...
        X