diff --git a/api/simqueue/resources/for_users.py b/api/simqueue/resources/for_users.py index fd78b57..6db70b2 100644 --- a/api/simqueue/resources/for_users.py +++ b/api/simqueue/resources/for_users.py @@ -26,7 +26,7 @@ SessionStatus, ) from ..data_repositories import SourceFileDoesNotExist, SourceFileIsTooBig, EBRAINSDrive -from .. import db, oauth, utils +from .. import db, oauth, utils, settings from ..globals import PROVIDER_QUEUE_NAMES logger = logging.getLogger("simqueue") @@ -86,6 +86,11 @@ def about_this_api(): "about": "This is the EBRAINS Neuromorphic Computing Job Queue API.", "version": "3", "links": {"documentation": "/docs"}, + "authentication": { + "server": settings.EBRAINS_IAM_SERVICE_URL, + "client-id": settings.EBRAINS_IAM_CLIENT_ID, + "collaboratory": settings.EBRAINS_COLLAB_SERVICE_URL, + }, } diff --git a/api/simqueue/tests/test_auth_router.py b/api/simqueue/tests/test_auth_router.py index faf9c1f..0f78f53 100644 --- a/api/simqueue/tests/test_auth_router.py +++ b/api/simqueue/tests/test_auth_router.py @@ -10,6 +10,11 @@ def test_read_main(): assert response.status_code == 200 assert response.json() == { "about": "This is the EBRAINS Neuromorphic Computing Job Queue API.", + "authentication": { + "client-id": None, + "collaboratory": "https://wiki.ebrains.eu/rest/v1/", + "server": "https://iam.ebrains.eu/auth/realms/hbp", + }, "version": "3", "links": {"documentation": "/docs"}, }