From 82f1c2f36ee2665f7a35bb2332e3a8eee3d63f22 Mon Sep 17 00:00:00 2001 From: Mats Bovin Date: Tue, 2 Apr 2024 13:47:04 +0200 Subject: [PATCH] Use oidc for authentication --- sbdi/data/config/image-service-config.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/sbdi/data/config/image-service-config.yml b/sbdi/data/config/image-service-config.yml index a2a1339a..f426b014 100644 --- a/sbdi/data/config/image-service-config.yml +++ b/sbdi/data/config/image-service-config.yml @@ -7,7 +7,7 @@ server: security: cas: - enabled: true + enabled: false appServerName: "http://localhost:8080" bypass: false disableCAS: false @@ -18,10 +18,10 @@ security: loginUrl: https://auth.biodiversitydata.se/cas/login logoutUrl: https://auth.biodiversitydata.se/cas/logout oidc: - enabled: false - clientId: - secret: - discoveryUri: + enabled: true + clientId: replace_with_real_value + secret: replace_with_real_value + discoveryUri: https://auth.biodiversitydata.se/cas/oidc/.well-known jwt: enabled: false discoveryUri: @@ -118,3 +118,7 @@ openapi: contact: name: email: + components: + security: + oauth2: + baseUrl: https://auth.biodiversitydata.se/cas/oidc