Results 1 to 3 of 3

Thread: Location of OAuth2ClientContextFilter in Filter Chain

  1. #1
    Join Date
    Dec 2009
    Posts
    3

    Default Location of OAuth2ClientContextFilter in Filter Chain

    Is there any reason why the OAuth2ClientContextFilter is placed after the ExceptionTranslationFilter. Could it be moved up the filter chain without any issues?

  2. #2
    Join Date
    May 2008
    Location
    Salt Lake City
    Posts
    167

    Default

    If OAuth2AccessTokenRequiredException gets thrown, the context filter needs to intercept it before it gets to the ExceptionTranslationFilter so it can redirect the user appropriately. So I think it does need to go after.

  3. #3
    Join Date
    Dec 2009
    Posts
    3

    Default

    Thanks stoic, I thought that might be the case

Posting Permissions

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