Skip to content
This repository has been archived by the owner on Oct 22, 2022. It is now read-only.

Commit

Permalink
Merge pull request #241 from CanDIG/develop
Browse files Browse the repository at this point in the history
remove js-accessible token (#240)
  • Loading branch information
jimmyhli committed Jan 23, 2020
2 parents 3076c35 + a21491c commit 3377e77
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 13 deletions.
1 change: 0 additions & 1 deletion candig/server/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,6 @@ def render_candig_template(template_path, **kwargs):

return flask.render_template(
template_path,
session_id=session_id,
prepend_path=app.config.get('TYK_LISTEN_PATH', ''),
username=session_user,
**kwargs
Expand Down
2 changes: 1 addition & 1 deletion candig/server/static/dist/global.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion candig/server/static/src/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ function makeRequest(path, body) {
xhr.open('POST', prepend_path + path, true);
xhr.setRequestHeader('Content-Type', 'application/json');
xhr.setRequestHeader('Accept', 'application/json');
xhr.setRequestHeader('Authorization', 'Bearer ' + session_id);
xhr.onload = function() {
if (xhr.status == 200) {

Expand Down
2 changes: 0 additions & 2 deletions candig/server/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@
let datasetId;
let finalDatasetName = [];
let finalDatasetId = [];
const session_id = '{{ session_id }}';
const prepend_path = '{{prepend_path}}';
const logout_url = '{{ logout_url }}';
</script>
<script src="{{prepend_path}}/static/dist/global.js"></script>
{% endblock %}
Expand Down
7 changes: 1 addition & 6 deletions candig/server/templates/swagger.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,7 @@
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout",

requestInterceptor: (req) => {
req.headers.Authorization = "Bearer " + "{{ session_id }}"
return req
}
layout: "StandaloneLayout"
})
window.ui = ui
}
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ def __getattr__(cls, name):
# built documents.
#
# The short X.Y version.
version = "1.1.0" # candig.server.__version__.split("+")[0]
version = "1.2.0" # candig.server.__version__.split("+")[0]
# The full version, including alpha/beta/rc tags.
release = "1.1.0" # candig.server.__version__
release = "1.2.0" # candig.server.__version__

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
5 changes: 5 additions & 0 deletions docs/status.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ notes.
Release Notes
+++++++++++++

*****
1.2.0
*****
https://github.com/CanDIG/candig-server/releases/tag/v1.2.0

*****
1.1.0
*****
Expand Down

0 comments on commit 3377e77

Please sign in to comment.