HTMLClient:
- Change die top navigation (My Profile My Contexts My Resources My Groups) from a window.location model to a model that supports headers.
/server/src/main/resources/webcontent/js/navigation.js
- When navigating add the authentication token to the header: headers : {"Authorization" : localStorage.getItem("token"),}
- In the corresponding rest interfaces and their corresponding helper classes use the token to identify the user and authenify him.
org.openape.ui.velocity.controller.[name]
org.openape.ui.velocity.requestHandler.[name]
For authentication use our auth service
/server/src/main/java/org/openape/server/auth/AuthService.java
- change the direct Database access, through DatabaseConnection.java, to a route through the usual rest interfaces. A get on the root path of each context rest interface returns a list of all (owned and public) contexts.
https://github.com/REMEXLabs/OpenAPE/tree/fixAminSectionAccess
HTMLClient:
/server/src/main/resources/webcontent/js/navigation.js
org.openape.ui.velocity.controller.[name]
org.openape.ui.velocity.requestHandler.[name]
For authentication use our auth service
/server/src/main/java/org/openape/server/auth/AuthService.java
https://github.com/REMEXLabs/OpenAPE/tree/fixAminSectionAccess