Created
November 13, 2021 21:29
-
-
Save baso53/20a6ba6f050007db0e2df08db45b0db1 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 List<Permission> requestedClaims | |
) throws FirebaseAuthException { | |
userManagementService.setUserClaims(uid, requestedClaims); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment