Page 3 of 3 FirstFirst 123
Results 21 to 26 of 26

Thread: OAuth change the default authorize token and token end point URLs

  1. #21
    Join Date
    Apr 2012
    Posts
    26

    Default

    Hi Dave,

    I tried changing the urls on my application, it worked like a charm!
    You were actually right, these issues were to do with the configuration in tonr/sparklr application. The minimal configuration I described in my initial post (with correct filter order) did work for my application, which is relatively simpler than tonr/sparklr. Thanks for you help!

    Samy

  2. #22
    Join Date
    Apr 2012
    Posts
    26

    Default

    Hi Dave,

    Unfortunately, though the code worked but in certain senario it is throwing StackOverflowError. Mostly when you press a back button after authorize.

    I am thinking of an alternative which is putting a url redirect at apache level, which would convert my url to 'oauth' specific url. You you think EndpointValidationFilter does something more than that?

    Thanks,
    Sam

  3. #23
    Join Date
    Jun 2005
    Posts
    4,241

    Default

    Adjusting the url in the load balancer would certainly work, but I'd like to fix it in Spring Security. What are the steps to reproduce your error?

  4. #24
    Join Date
    Apr 2012
    Posts
    26

    Default

    Quote Originally Posted by Dave Syer View Post
    Adjusting the url in the load balancer would certainly work, but I'd like to fix it in Spring Security. What are the steps to reproduce your error?
    Well I have a demo client with screens getAuthCode(makes request to /oauth/authorize)->getToken(makes request to /oauth/token)->getResource(makes request to the resource server). When I tried initially, it went through all steps successfully. Then I clicked 'back' from browser. At point getToken->getAuthCode, it threw the StackoverflowError. You see the logs here https://docs.google.com/open?id=0B_K...S1MMWdheV9UUGc.

    I am using oauth M5.

  5. #25
    Join Date
    Jun 2005
    Posts
    4,241

    Default

    Any chance you can upgrade to a recent build? M5 is very old. I'm not saying the problem won't persist, but it'll be a lot easier to fix. And if you can reproduce the problem with sparklr2 it would be really helpful. I can't reproduce it, so maybe it is fixed, but maybe you just haven't given us enough information yet.

  6. #26
    Join Date
    Apr 2012
    Posts
    26

    Default

    Quote Originally Posted by Dave Syer View Post
    Any chance you can upgrade to a recent build? M5 is very old. I'm not saying the problem won't persist, but it'll be a lot easier to fix. And if you can reproduce the problem with sparklr2 it would be really helpful. I can't reproduce it, so maybe it is fixed, but maybe you just haven't given us enough information yet.
    Hi Dave,

    For me URL redirect fixed it.

    I are not planning to upgrade very soon. Rather I tried upgrading before, but looked like there lot of work to be done to move from M5 to M6. I will try to reproduce in sparklr2.

    Thanks,
    Sam

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •