• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Extracting username from SOAP header

Mat Anthony
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have a third party making a webservice call containing the username in the soapheader.

I would like to use an Interceptor to get hold of the username, but I found out that Interceptors
are part of the Spring MVC and get called after Filters and I currently have old code that uses a
AbstractPreAuthenticatedProcessingFilter to extract a username from the HttpServletRequest after
Single Sign On has been called.

I have thought about creating new filter that would be called before the AbstractPreAuthenticatedProcessingFilter.
This filter would extract out the username from the soap header and put it into the request remoteuser.
The only problem with this is that I would have to make a CustomRequestWrapper so that the request can still be passed
onto AbstractPreAuthenticatedProcessingFilter. This approach seems over the top and I'm also not sure how to extract
the username from the soap header.

Has anybody got any ideas?

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic