Class PlanmonitorAuthenticationService
java.lang.Object
nl.b3p.planmonitorwonen.api.security.PlanmonitorAuthenticationService
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.AuthenticationRequires 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).Requires a logged-in Tailormap user with a group property typeGebruiker "provincie" or one or more gemeente group properties.
-
Constructor Details
-
PlanmonitorAuthenticationService
public PlanmonitorAuthenticationService()
-
-
Method Details
-
requireAuthenticated
public org.springframework.security.core.Authentication requireAuthenticated() throws org.springframework.web.server.ResponseStatusExceptionRequires 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.ResponseStatusExceptionRequires 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
-