notBefore wasn't being assigned
This commit is contained in:
parent
957ff7d206
commit
334b981741
2 changed files with 2 additions and 1 deletions
|
@ -15,6 +15,7 @@ public class LogoutAction extends AdminAction {
|
|||
public LogoutAction(String id, int expiration, String resource, String user, int notBefore) {
|
||||
super(id, expiration, resource, LOGOUT);
|
||||
this.user = user;
|
||||
this.notBefore = notBefore;
|
||||
}
|
||||
|
||||
public String getUser() {
|
||||
|
|
|
@ -195,7 +195,7 @@ public class ResourceAdminManager {
|
|||
String token = new TokenManager().encodeToken(realm, adminAction);
|
||||
logger.infov("logout user: {0} resource: {1} url: {2}", user, resource.getName(), managementUrl);
|
||||
ClientRequest request = client.createRequest(UriBuilder.fromUri(managementUrl).path(AdapterConstants.K_LOGOUT).build().toString());
|
||||
ClientResponse response = null;
|
||||
ClientResponse response;
|
||||
try {
|
||||
response = request.body(MediaType.TEXT_PLAIN_TYPE, token).post(UserStats.class);
|
||||
} catch (Exception e) {
|
||||
|
|
Loading…
Reference in a new issue