Commit Graph
43 Commits
Author SHA1 Message Date
handte 0b4a43d2d7 Add uptime to stats, fix entity counts.
lbs-gitea/maptology/master This commit looks good
2018-01-18 14:47:47 +01:00
handte 484fb2fb0e Added api endpoints for stats.
lbs-gitea/maptology/master This commit looks good
2018-01-18 14:35:02 +01:00
handte a1997ffcaa Added missing api annotations.
lbs-gitea/maptology/master This commit looks good
2018-01-18 10:57:35 +01:00
handte 55f5260e2b Fix wrong import.
lbs-gitea/maptology/master There was a failure building this commit
2018-01-18 10:45:20 +01:00
handte 670f9c0c1f Bug fixes and cleanup. Added interceptors.
lbs-gitea/maptology/master This commit looks good
Bugfix in api defintion.
Remove debug output from PrincipalSessionBean.
Added container interceptor to provide heavy debug output on swarms.
Added container interceptor to compute the server's local
processing-time in milliseconds for all configurations (attached as
X-Processing-Time header to all responses).
2018-01-16 17:05:10 +01:00
handte 7f9028ba4b Finalize server api, fix feign client generation.
lbs-gitea/maptology/master This commit looks good
Commented out failing test case for MainActivity in Android app.
Added places and visits to model location history.
Added privileges to model stored (incoming) shares.
Added api end points required for web ui.
Removed custom "DefaultApi" from feign client since feign is not able to
handle inheritance. Tag all api methods with "Default" as well to
generate single-file "DefaultClient" based on tags.
Added "user-specific" session bean and entity to avoid replicating
query-logic in other "user-specific" entities.
Minor corrections in api docs and comments.
2018-01-15 16:50:03 +01:00
Philipp Disselhoff 7fbdf5885e Add swagger tags to group endpoints
lbs-gitea/maptology/master There was a failure building this commit
2018-01-11 14:18:30 +01:00
handte ffbcdcd561 Add missing attribute to fix generated swagger.
lbs-gitea/maptology/master This commit looks good
2018-01-10 11:33:13 +01:00
handte 374bc01c28 Fix semantic errors in api definition.
lbs-gitea/maptology/master This commit looks good
2018-01-10 11:13:05 +01:00
handte c526ffdd4d Fix security definition.
lbs-gitea/maptology/master This commit looks good
Set security definition header to Authorization to support calls through
swagger api console. Note that you still need to manually prepend Bearer
to the token since Bearer auth is only supported in openapi v3.

This means that to login as a device, you will need to set the apiKey to
"Bearer ..." where ... is the token of a device handle.
2018-01-10 08:35:31 +01:00
handte a433b141df Extended device, share and location api.
lbs-gitea/maptology/master This commit looks good
Extended api for devices and location sharing.
Refactored existing api endpoint naming scheme to improve consistency.
Added picket box login module to test ejb security.
Added ejb level integration tests.
Extended jaspic login module.
Removed duplicate exception classes.
Fixed issues in swagger ui on swarm.
Added indirection to data initialization to support more complicated
debug and testing setups.
2018-01-10 08:08:55 +01:00
Ole Meyer c8272b3dab use custom authorization header for device authentication
lbs-gitea/maptology/master This commit looks good
2017-12-23 08:28:00 +01:00
Ole Meyer fc75ab4611 implement api endpoint for fetching the las known location for a share
lbs-gitea/maptology/master This commit looks good
2017-12-21 13:34:49 +01:00
Ole Meyer 417e145899 fix: location should inherit from entity
lbs-gitea/maptology/master This commit looks good
2017-12-21 12:19:33 +01:00
Ole Meyer 7bf8829a38 simplify exception handling and implement method for retrieving the share object that belongs to a secret id 2017-12-20 23:20:55 +01:00
Ole Meyer 6cc6cdfb64 A part of the data about a share is generated by the server, so expect only the data known to the user for generating a new one. 2017-12-20 20:51:09 +01:00
Philipp Disselhoff b668d8ab4c Return user login field for devices.
lbs-gitea/maptology/master This commit looks good
Add tests.
2017-12-20 14:47:57 +01:00
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
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