Commit Graph
27 Commits
Author SHA1 Message Date
Philipp Disselhoff 822993056c Implement GET /devices
lbs-gitea/maptology/master This commit looks good
Add tests for DeviceResource.
Add tests for DeviceSessionBean.
Fix missing Annotation in API
2017-12-15 16:11:02 +01:00
Ole Meyer 4b21768aa2 adapt share service according to discussions
lbs-gitea/maptology/master This commit looks good
2017-12-14 20:57:49 +01:00
Ole Meyer 88e74b632f use plural to describe collections in api paths
lbs-gitea/maptology/master This commit looks good
2017-12-14 20:03:15 +01:00
Ole Meyer 0fc794723b fix to ensure a proper build
lbs-gitea/maptology/master There was a failure building this commit
2017-12-14 19:47:25 +01:00
Ole Meyer fdb5db9fb3 adapt device service according to discussions 2017-12-14 19:44:27 +01:00
Philipp Disselhoff a7fe0dc7cf Implement DeviceEntity.
Implement IDeviceService and DeviceSessionBean for device creation only.
Add method to UserSessionBean to return current user entity for direct use in other beans.
Change device creation endpoint from PUT to POST.
Rename device secret to authToken.
Append AuthToken swagger documentation.
2017-12-14 18:12:23 +01:00
handte 0fd362e3bf Replace role enum with constants, remove custom annotations.
lbs-gitea/maptology/master This commit looks good
Replace role enumeration with constant string values and static methods
to list the roles.
Removed custom annotation in favor of javax.security annotations.
Changed custom access control interceptor to handle new annoations
(note: automating this with Resteasy's own filter would create tons of
xml configuration)
Replace all access control annotations in rest package with
javax.security annotations.
IMPORTANT: Rest methods without security requirements MUST be annotated
with PermitAll to work (this is consistent with EJB's use of the
annotation but it is a behavioral change). If something is not working
search through the log file for SEVERE warnings that are generated by
the access control interceptor if a misconfigured endpoint is detected.
2017-12-14 12:31:06 +01:00
Ole Meyer 6330cda17b result of discussion 2017-12-14 10:08:23 +01:00
Ole Meyer a53cdabcd2 add pagenation 2017-12-14 10:05:26 +01:00
handte 63a1bc2eb1 Fix bugs in api that are causing build failures.
lbs-gitea/maptology/master This commit looks good
2017-12-11 20:31:29 +01:00
Ole Meyer 6dc77c197d add share api
lbs-gitea/maptology/api-definition There was a failure building this commit
2017-12-10 23:59:04 +01:00
Ole Meyer d244836a7a add location api 2017-12-10 23:24:59 +01:00
Ole Meyer ea5b800125 add device api 2017-12-10 23:06:43 +01:00
Ole Meyer 95e3e1741d add security definition for device authentication 2017-12-10 22:07:54 +01:00
handte dc392513ff Added db example to app, cleanup feign and api.
lbs-gitea/maptology/master This commit looks good
2017-12-08 21:56:48 +01:00
handte 2174195fa7 Add input validation, add addUser, change swagger security.
lbs-gitea/maptology/master There was a failure building this commit
Enable jax-rs bean validation on all inputs.
Add jax-rs validation fraction to wildfly.
Add missing addUser admin method to user service.
Add testcases for addUser.
Add missing and fix incorrect security annotations on all service
interfaces.
Split swagger security definition into two definitions (admin, user) to
model required access privileges in swagger file.
Move authorization definitions from class to method level to properly
define the minimum access rights.
Set locoslab api version to final instead of snapshot dependency to
avoid repeated downloads of never-changing libraries.
2017-12-06 21:18:09 +01:00
handte 0ef59cd4b8 Added service to fetch the build version from the manifest.
lbs-gitea/maptology/master This commit looks good
2017-12-05 15:18:09 +01:00
handte 556e843581 Fixed bugs in json api, added code to demonstrate websockets.
lbs-gitea/maptology/master This commit looks good
Added log handler in ejb to catch server log for maptology code.
Added simple restful log service to support fetching server log via
polling.
Added websocket to demonstrate retrieving the latest log messages via
push.
Hacked websocket into angular console component to show server log when
user is logged in as admin.
2017-12-04 17:57:54 +01:00
handte 0320a7a0dd Improved consistency, added user management tests.
lbs-gitea/maptology/master There was a failure building this commit
Improved consistency of method names.
Added integration tests for business logic of user account management.
Added test-suite extension to avoid multiple deployments.
Extended object model to facilitate testability.
2017-12-02 17:55:11 +01:00
handte 51b7c27c50 Add user management (needs testing), added/fixed ejb security.
lbs-gitea/maptology/master This commit looks good
Added user management with email workflow and optional beans for
debugging (needs more integration tests).
Fixed jaspi integration to support declarative security at the ejb layer
as well.
Extended ejb integration tests to support login without rest.
Extended notice management for display in web application.
Reworked existing implementation to consistenly deliver unfiltered
results to all admin apis and filtered results to all user apis.
Added package infos to some more packages.
2017-11-29 20:26:19 +01:00
handte ce3aa2f720 Added angular example, workaround for jackson/xml issue in page.
lbs-gitea/maptology/master This commit looks good
2017-11-20 21:37:22 +01:00
handte cd697a52e4 Remove auth module challenge, fix api descriptions.
lbs-gitea/maptology/master This commit looks good
Remove auth module challenge by sending forbidden instead of unauthoized
when no credentials are provided to work around automatic credential
storage in browser and ugly pop-up dialogs that will not look good in a
webapp. To support direct testing of get requests, consider using the
api console instead. Alternatively, provide the new magic "testAuth"
parameter as part of the query string. This will restore the original
behavior, i.e. /user/current will fail immediately and
/user/current?testAuth will generate a challenge, if no authorization
header is provided as part of the request. 
Cleanup api responses and work around problems with swagger plugin that
will not pickup security annotations on methods.
2017-11-12 10:36:31 +01:00
handte c83e239e88 Added notice service to play with angular, minor refactoring.
lbs-gitea/maptology/master This commit looks good
2017-11-12 00:12:35 +01:00
handte 5915090805 Added angular example, apigen and apiconsole, removed need for ear.
lbs-gitea/maptology/master This commit looks good
Added example for angular with generated api-client.
Added swagger-ui api-console to api.
Added war (webapp) containing angular app (attached to /app).
Modified bundling of ejb and war to allow standalone war deployment.
Added ear to integrate api and app.
Added security definitions to swagger.
Added http scheme to swagger for development.
Removed cache control header from getUsers to force revaliation.
Added jboss-web.xml files to war files to ensure that standalone
deployments are attached to the same context root as ear deployments.
Configured resteasy as a servlet filter to support coexistence with
static resources.
2017-11-09 18:25:01 +01:00
handte 6107e53d85 Automatic integration tests, minor refactoring, fixes. 2017-10-26 17:08:24 +02:00
handte 9d8c5aac8a Added criteria api demo, conversions and caching. 2017-10-25 11:55:10 +02:00
handte eb315f28db Added incomplete swagger/ejb/rest/jsapi integration demo. 2017-10-24 21:23:49 +02:00