Commit 331f03d4 authored by Manuel's avatar Manuel

bugfixes, changed swagger path

parent 461a987e
from security import security_utils as security
from security import security_util
def verifyTokenRegular(token, required_scopes):
# TODO call restGateway to verify the token
return {}
return decodeToken(token)
def verifyTokenAdmin(token, required_scopes):
# TODO call restGateway to verify the token
......
......@@ -6,7 +6,7 @@ info:
# Import security definitions from seperate file
securityDefinitions:
$ref: '../../../modules/security/security.yml#securityDefinitions'
$ref: '../security/security.yml#securityDefinitions'
consumes:
- "application/json"
......
......@@ -9,7 +9,6 @@ from typing import Dict
SIGNING_KEY = "yteNrMy6142WKwp8fKfrHkS5nlFpxtHgOXJh1ZPsOrV_gTcsO9eMY7aB7HUzRbTRO9dmZhCl3FdPtuvMe3K8aBA_wc2MmHRo8IkUIGmvUJGsAxKFClN_6oNW5fEvoeVKiL1krA-qjWbR_em-WksePgPoTsySW7QbKdi4f7cwuyK2_JZ2fQj9hDKlfJ2GzMXkKiWcfyCTr30yC6BviAFeRDD_Bpvg6znsrXr53Tq66hnwDwQ6QU7aHVu-bERblKZTYuvkSxsov6yRMEVWQoiuBITsQtIOcgSWK4Dy3BjSbqoIcKw3WG-s3wx1lTen19QbEu8vJC64e0iGeGDWT6vbtg"
TOKEN_VALIDITY_IN_DAYS = 1
def verifyTokenRegular(token, required_scopes) -> Dict:
try:
user = TokenService.verify(token)
......
......@@ -12,6 +12,14 @@ spec:
targetPort: 5000
nodePort: 30401
protocol: TCP
volumeMounts:
- mountPath: /srv/articonf
name: articonf
volumes:
- name: articonf
hostPath:
path: /srv/articonf
type: Directory
---
apiVersion: apps/v1
kind: Deployment
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment