Class PlanmonitorAuthenticationService

java.lang.Object
nl.b3p.planmonitorwonen.api.security.PlanmonitorAuthenticationService

@Service @Profile("!test") public class PlanmonitorAuthenticationService extends Object
  • Constructor Details

    • PlanmonitorAuthenticationService

      public PlanmonitorAuthenticationService()
  • Method Details

    • requireAuthenticated

      public org.springframework.security.core.Authentication requireAuthenticated() throws org.springframework.web.server.ResponseStatusException
      Requires a logged-in Tailormap user, without requiring authorization for a gemeente or provincie (for data a Tailormap admin also needs, such as the gemeente choices for the group properties).
      Throws:
      org.springframework.web.server.ResponseStatusException
    • requirePlanmonitorUser

      public PlanmonitorAuthenticationService.PlanmonitorAuthentication requirePlanmonitorUser() throws org.springframework.web.server.ResponseStatusException
      Requires a logged-in Tailormap user with a group property typeGebruiker "provincie" or one or more gemeente group properties.
      Returns:
      the provincie flag and the gemeentes the user is authorized for
      Throws:
      org.springframework.web.server.ResponseStatusException - 401 when not logged in, 403 when not authorized for a gemeente or provincie