-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Test and enable enableRestSecurity property in appengine-web.xml #256
Comments
The 2 properties used by the <property name="enableRestSecurity" value="false"/>
<property name="restPrivateKey" value="test"/> <!-- some private key --> |
* Pass the `uploadUrl` as option for identifying the instance * Remove the `?` from the querystring
The import spreadsheet process also makes a request to update summaries. Leading to a unauthorized error.
|
The code in the
|
* Pass the `uploadUrl` as option for identifying the instance * Remove the `?` from the querystring
* Some request made when importing a spreadsheet use the same query parameter (e.g. questionId), the code was only building the querystring for calculating the hash * In the applet code, we "url encode" all parameters except ths `ts` to match the version in the RestAuthFilter * The RawDataImportRequest needs to be able to handle url encoded dates
* We need to decode the data before spliting it
* Refactor the initial code * 2nd implementation on how to make authenticated requests * TODO: The secret should be based on the config repository Please enter the commit message for your changes. Lines starting
Tested with api-key-test against akvoflowsandbox:
"expected: (= 200 (:status (client/get req-url))) actual: clojure.lang.ExceptionInfo: clj-http: status 401" $ lein test Ran 1 tests containing 3 assertions.
lein test akvo-tests.core-test |
Currently the REST calls based on
AbstractRestApiServlet
are not secured. There is a buit-in way of enabling/ensuring that only authorized clients can use this end pointsSee:
RestAuthFilter
appengine-web.xml
The text was updated successfully, but these errors were encountered: