Skip to content

Integrate with SpringSecurity to consider authorization annotations on controller methods #1343

Open
@amarocco

Description

@amarocco

Looking at the documentation I would like to use RepresentationModelProcessor to:

Leverage cross cutting services like Spring Security to add, remove, or revise links based upon the current user’s context.

Could it be possible to provide a sample for such a case ?

I.e.: if I have a service.create() method secured with @PreAuthorize("isMember(#id)") I would like to use the same logic to add/hide link to representation accordingly.

if necessary I can provide a sample project

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions