Announcement Announcement Module
Collapse
No announcement yet.
Did not find handler method for [/oauth/authorize] Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Did not find handler method for [/oauth/authorize]

    http://localhost:8080/MyPlace/oauth/...d&state=7UNCxW


    [27/01/12 03:31:02:002 KST] DEBUG util.AntPathRequestMatcher: Checking match of request : '/oauth/authorize'; against '/oauth/authorize'
    [27/01/12 03:31:02:002 KST] DEBUG intercept.FilterSecurityInterceptor: Secure object: FilterInvocation: URL: /oauth/authorize?client_id=tonr&redirect_uri=http%3A%2F%2 Flocalhost%3A8080%2Ftonr2%2Fsparklr%2Fphotos&respo nse_type=code&scope=read&state=7UNCxW; Attributes: [IS_AUTHENTICATED_ANONYMOUSLY]
    [27/01/12 03:31:02:002 KST] DEBUG intercept.FilterSecurityInterceptor: Previously Authenticated: org.springframework.security.authentication.Anonym ousAuthenticationToken@9055c2bc: Principal: anonymousUser; Credentials: [PROTECTED]; Authenticated: true; Details: org.springframework.security.web.authentication.We bAuthenticationDetails@b364: RemoteIpAddress: 0:0:0:0:0:0:0:1; SessionId: null; Granted Authorities: ROLE_ANONYMOUS
    [27/01/12 03:31:02:002 KST] DEBUG vote.UnanimousBased: Voter: org.springframework.security.oauth2.provider.vote. ScopeVoter@127d2cb, returned: 0
    [27/01/12 03:31:02:002 KST] DEBUG vote.UnanimousBased: Voter: org.springframework.security.access.vote.RoleVoter @18028b0, returned: 0
    [27/01/12 03:31:02:002 KST] DEBUG vote.UnanimousBased: Voter: org.springframework.security.access.vote.Authentic atedVoter@ef6082, returned: 1
    [27/01/12 03:31:02:002 KST] DEBUG intercept.FilterSecurityInterceptor: Authorization successful
    [27/01/12 03:31:02:002 KST] DEBUG intercept.FilterSecurityInterceptor: RunAsManager did not change Authentication object
    [27/01/12 03:31:02:002 KST] DEBUG web.FilterChainProxy: /oauth/authorize?client_id=tonr&redirect_uri=http%3A%2F%2 Flocalhost%3A8080%2Ftonr2%2Fsparklr%2Fphotos&respo nse_type=code&scope=read&state=7UNCxW reached end of additional filter chain; proceeding with original chain
    [27/01/12 03:31:02:002 KST] DEBUG servlet.DispatcherServlet: DispatcherServlet with name 'appServlet' processing GET request for [/MyPlace/oauth/authorize]
    [27/01/12 03:31:02:002 KST] DEBUG annotation.RequestMappingHandlerMapping: Looking up handler method for path /oauth/authorize
    [27/01/12 03:31:02:002 KST] DEBUG annotation.RequestMappingHandlerMapping: Did not find handler method for [/oauth/authorize]
    [27/01/12 03:31:02:002 KST] WARN servlet.PageNotFound: No mapping found for HTTP request with URI [/MyPlace/oauth/authorize] in DispatcherServlet with name 'appServlet'
    [27/01/12 03:31:02:002 KST] DEBUG context.HttpSessionSecurityContextRepository: SecurityContext is empty or contents are anonymous - context will not be stored in HttpSession.
    [27/01/12 03:31:02:002 KST] DEBUG servlet.DispatcherServlet: Successfully completed request
    [27/01/12 03:31:02:002 KST] DEBUG access.ExceptionTranslationFilter: Chain processed normally
    [27/01/12 03:31:02:002 KST] DEBUG filter.OAuth2ProtectedResourceFilter: Chain processed normally
    [27/01/12 03:31:02:002 KST] DEBUG filter.OAuth2ExceptionHandlerFilter: Chain processed normally
    [27/01/12 03:31:02:002 KST] DEBUG context.SecurityContextPersistenceFilter: SecurityContextHolder now cleared, as request processing completed

    I TRY SPARKLR2 ITS SUCCESS... MY APPLICATION IS FAILED PLEASE HELP

  • #2
    Could you please provide your whole configuration please ? (both spring oauth + spring security and spring mvc configs) ?

    Comment


    • #3
      I have same problems

      Originally posted by naderghanbari View Post
      Could you please provide your whole configuration please ? (both spring oauth + spring security and spring mvc configs) ?
      I have same problems.

      Attached are my configurations. Oh, by the way, I use Spring Roo to generate Spring MVC & Spring Security, then modified them.

      Thanks!

      Comment


      • #4
        This is an old thread referring to very old versions of the framework. What version are you using? Can you upgrade to a snapshot?

        Comment


        • #5
          Originally posted by Dave Syer View Post
          This is an old thread referring to very old versions of the framework. What version are you using? Can you upgrade to a snapshot?
          I'm using latest version(build-snapshot), still not working. I figure it out why paths not be mapped. The reason is that I separate Security/OAuth2 and MVC to different configuration files, after putting them to one configuration file, It's working now. I still wondering why separate them gonna cause this issue.

          Comment


          • #6
            Probably because the MVC configuration is traditionally in a different application context to the Security config. If you put the OAuth endpoint declarations in the wrong file it won't work because they are in the wrong context. It's not super difficult to separate, but remember that <oauth:authorization-server/> creates MVC controllers, so you need that in the servlet context not the parent.

            Comment


            • #7
              Originally posted by Dave Syer View Post
              Probably because the MVC configuration is traditionally in a different application context to the Security config. If you put the OAuth endpoint declarations in the wrong file it won't work because they are in the wrong context. It's not super difficult to separate, but remember that <oauth:authorization-server/> creates MVC controllers, so you need that in the servlet context not the parent.

              Thank you very much!

              Comment

              Working...
              X