Skip to content
Snippets Groups Projects

Add PviAttributeBindingFilter

AttributeBindingFilter is a filter that is used along with rest-proxy to add headers to a request based on the attributes added with the filter.

WIP for suggestions/critiques on the design and implementation.

Please review: @paul.erickson @ahoffmann @bjsousa

Merge request reports

Merged by avatar (Apr 23, 2025 4:10am UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • I am confused by this contribution though - I'm expecting to see the magic SecurityContextHolder.getContext().getAuthentication().getPrincipal(), a cast to UWUserDetails, and invocation of a specific method, like UWUserDetails.getPvi().

  • Ah! I was confused about the use case for this then. I thought that that ^ was what we were adding. So this will be used specifically for adding user attributes?

  • Andy Summers Added 1 commit:

    Added 1 commit:

    • b3bdc2f8 - Change to AttributeBindingFilter for user specific attributes
  • Is the more along the lines of what you were thinking? It doesn't have to be specific to PVI, though that's the only thing implemented right now (for illustration purposes).

  • Build triggered.

  • Andy Summers Title changed from [WIP] Add RestProxyAttributeBindingFilter to [WIP] Add AttributeBindingFilter

    Title changed from [WIP] Add RestProxyAttributeBindingFilter to [WIP] Add AttributeBindingFilter

  • General question: Can't we just add the 'On-Behalf-Of' header at this point, or would rest-proxy fail to proxy it along on the outgoing request?

  • Andy Summers Added 1 commit:

    Added 1 commit:

    • 8efef949 - Change to PviAttributeBindingFilter
  • Build triggered.

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading