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.
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.
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.
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.
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.
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.
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.
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.