Created
November 14, 2021 12:39
-
-
Save baso53/fe9c94252f650717b60ad3d50c61e8ba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RestController | |
@RequestMapping("/admin") | |
@RequiredArgsConstructor | |
public class AdminController { | |
private final UserManagementService userManagementService; | |
@Secured("ROLE_ANONYMOUS") | |
@PostMapping(path = "/user-claims/{uid}") | |
public void setUserClaims( | |
@PathVariable String uid, | |
@RequestBody Map<EntityType, Map<Long, Set<Permission>>> requestedClaims | |
) throws FirebaseAuthException { | |
userManagementService.setTokenClaims(uid, requestedClaims); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment