Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Commit 025b96e

Browse files
authored
Merge pull request #145 from CSCfi/dev
Dev
2 parents fc2f058 + 2293840 commit 025b96e

8 files changed

Lines changed: 12 additions & 11 deletions

File tree

beacon_api/conf/config.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
title=GA4GHBeacon at CSC
88

99
# Version of the Beacon implementation
10-
version=1.6.0
10+
version=1.6.1
1111

1212
# Author of this software
1313
author=CSC developers

beacon_api/utils/validate.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from aiohttp import web
44
from authlib.jose import jwt
55
from authlib.jose.errors import MissingClaimError, InvalidClaimError, ExpiredTokenError, InvalidTokenError
6-
import json
76
import re
87
import aiohttp
98
import os
@@ -33,9 +32,8 @@ async def parse_request_object(request):
3332
items = {k: (int(v) if k in int_params else v) for k, v in request.rel_url.query.items()}
3433
if 'datasetIds' in items:
3534
items['datasetIds'] = request.rel_url.query.get('datasetIds').split(',')
36-
obj = json.dumps(items)
3735
LOG.info('Parsed GET request parameters.')
38-
return request.method, json.loads(obj)
36+
return request.method, items
3937

4038

4139
# TO DO if required do not set default

deploy/test/auth_test.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
title=GA4GHBeacon at CSC
88

99
# Version of the Beacon implementation
10-
version=1.6.0
10+
version=1.6.1
1111

1212
# Author of this software
1313
author=CSC developers

deploy/test/mock_auth.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,11 @@ def generate_token():
118118

119119
async def jwk_response(request):
120120
"""Mock JSON Web Key server."""
121-
data = [DATA[0]]
122-
data[0]['kid'] = 'rsa1'
121+
keys = [DATA[0]]
122+
keys[0]['kid'] = 'rsa1'
123+
data = {
124+
"keys": keys
125+
}
123126
return web.json_response(data)
124127

125128

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def __getattr__(cls, name):
134134

135135
def setup(app):
136136
"""Add custom stylesheet."""
137-
app.add_stylesheet('custom.css')
137+
app.add_css_file('custom.css')
138138

139139

140140
# -- Other stuff ----------------------------------------------------------

docs/example.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Example Response:
126126
"createdAt": "2019-09-04T12:00:00Z",
127127
"updatedAt": "2019-09-05T05:55:18Z",
128128
"environment": "prod",
129-
"version": "1.6.0"
129+
"version": "1.6.1"
130130
}
131131
132132
Query Endpoint

docs/permissions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ The permissions are then passed in :meth:`beacon_api.utils.validate` as illustra
6565
.. literalinclude:: /../beacon_api/utils/validate.py
6666
:language: python
6767
:dedent: 16
68-
:lines: 183-200
68+
:lines: 180-197
6969

7070
If there is no claim for GA4GH permissions as illustrated above, they will not be added to
7171
``controlled_datasets``.

tests/test.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
title=GA4GHBeacon at CSC
88

99
# Version of the Beacon implementation
10-
version=1.6.0
10+
version=1.6.1
1111

1212
# Author of this software
1313
author=CSC developers

0 commit comments

Comments
 (0)