@RestController public class AccountResource extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Collection<CurrentUserProvider> |
currentUserProviders |
| Constructor and Description |
|---|
AccountResource(org.springframework.beans.factory.ObjectProvider<CurrentUserProvider> currentUserProviders) |
| Modifier and Type | Method and Description |
|---|---|
UserRepresentation |
getAccount(org.springframework.security.core.Authentication authentication)
GET /rest/account -> get the current user.
|
protected UserRepresentation |
getCurrentUserRepresentation(String currentUserId) |
com.fasterxml.jackson.databind.node.ObjectNode |
isAuthenticated(javax.servlet.http.HttpServletRequest request)
GET /rest/authenticate -> check if the user is authenticated, and return its full name.
|
protected final Collection<CurrentUserProvider> currentUserProviders
public AccountResource(org.springframework.beans.factory.ObjectProvider<CurrentUserProvider> currentUserProviders)
@GetMapping(value="/rest/authenticate",
produces="application/json")
public com.fasterxml.jackson.databind.node.ObjectNode isAuthenticated(javax.servlet.http.HttpServletRequest request)
@GetMapping(value="/rest/account",
produces="application/json")
public UserRepresentation getAccount(org.springframework.security.core.Authentication authentication)
protected UserRepresentation getCurrentUserRepresentation(String currentUserId)
Copyright © 2023 Flowable. All rights reserved.