Uploaded image for project: 'Blossom'
  1. Blossom
  2. BLOSSOM-193

Annotating controllers with @Secured

    XMLWordPrintable

Details

    • Bug
    • Resolution: Inactive
    • Neutral
    • None
    • 3.0.3
    • None
    • None

    Description

      Hello,

      I'm trying to integrate spring security with magnolia

      @Controller
      @Template(id = HomePageTemplate.ID, title = "Home Page", dialog = HomePageDialog.ID)
      public class HomePageTemplate {
      
          public static final String ID = "example:pages/home-page";
      
          @Secured("superuser")
          @RequestMapping("/home-page")
          public String render(Model model) {
              model.addAttribute("name", "World");
              return "home-page";
          }
      }
      

      Is there a preferred way to make Spring Security to user Magnolia as backend. If not, do you think you could tell me what is required to do so?

      Best,
      Vasily

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              tmattsson Tobias Mattsson
              vkartashov Vasily Kartashov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD