Examples of ValidateAccess


Examples of org.platformlayer.auth.model.ValidateAccess

    if (userEntity == null) {
      throw404NotFound();
    }

    ValidateTokenResponse response = new ValidateTokenResponse();
    response.access = new ValidateAccess();
    response.access.user = Mapping.mapToUserValidation(userEntity);

    // response.access.token = new Token();
    // response.access.token.expires = checkTokenInfo.expiration;
    // response.access.token.id = checkToken;
View Full Code Here

Examples of org.platformlayer.auth.model.ValidateAccess

      log.warn("Error while fetching user", e);
      throwInternalError();
    }

    ValidateTokenResponse response = new ValidateTokenResponse();
    response.access = new ValidateAccess();
    response.access.user = Mapping.mapToUserValidation(userEntity);

    response.access.token = new Token();
    response.access.token.expires = checkTokenInfo.expiration;
    response.access.token.id = checkToken;
View Full Code Here

Examples of org.platformlayer.auth.v1.ValidateAccess

    url += "?project=" + UrlUtils.urlEncode(projectId);

    try {
      ValidateTokenResponse response = doSimpleXmlRequest(HttpMethod.GET, url, null, ValidateTokenResponse.class);

      ValidateAccess access = response.getAccess();
      if (access == null) {
        return null;
      }

      // ProjectValidation project = access.getProject();
      // if (project == null || !Objects.equal(projectId, project.getId())) {
      // return null;
      // }

      UserValidation userInfo = access.getUser();
      if (userInfo == null) {
        return null;
      }

      ProjectValidation projectInfo = access.getProject();
      if (projectInfo == null) {
        return null;
      }

      // List<String> roles = Lists.newArrayList();
View Full Code Here

Examples of org.platformlayer.auth.v1.ValidateAccess

    try {
      ValidateTokenResponse response = doSimpleXmlRequest(HttpMethod.POST, url, chainInfo,
          ValidateTokenResponse.class);

      ValidateAccess access = response.getAccess();
      if (access == null) {
        return null;
      }

      UserValidation userInfo = access.getUser();
      if (userInfo == null) {
        return null;
      }

      ProjectValidation projectInfo = access.getProject();
      if (projectInfo == null) {
        return null;
      }

      String userKey = userInfo.getName();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.