@RestController public class AccountResource extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Collection<org.flowable.ui.common.rest.idm.CurrentUserProvider> |
currentUserProviders |
| Constructor and Description |
|---|
AccountResource(org.springframework.beans.factory.ObjectProvider<org.flowable.ui.common.rest.idm.CurrentUserProvider> currentUserProviders) |
| Modifier and Type | Method and Description |
|---|---|
org.flowable.ui.common.model.UserRepresentation |
getAccount(org.springframework.security.core.Authentication authentication)
GET /rest/account -> get the current user.
|
protected org.flowable.ui.common.model.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<org.flowable.ui.common.rest.idm.CurrentUserProvider> currentUserProviders
public AccountResource(org.springframework.beans.factory.ObjectProvider<org.flowable.ui.common.rest.idm.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 org.flowable.ui.common.model.UserRepresentation getAccount(org.springframework.security.core.Authentication authentication)
protected org.flowable.ui.common.model.UserRepresentation getCurrentUserRepresentation(String currentUserId)
Copyright © 2021 Flowable. All rights reserved.