diff --git a/charts/radar-rest-sources-backend/Chart.yaml b/charts/radar-rest-sources-backend/Chart.yaml index ffc73399..6dba7ad7 100644 --- a/charts/radar-rest-sources-backend/Chart.yaml +++ b/charts/radar-rest-sources-backend/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 appVersion: "4.4.4" description: A Helm chart for the backend application of RADAR-base Rest Sources Authorizer name: radar-rest-sources-backend -version: 1.2.1 +version: 1.2.2 icon: "http://radar-base.org/wp-content/uploads/2022/09/Logo_RADAR-Base-RGB.png" sources: - https://github.com/RADAR-base/radar-helm-charts/tree/main/charts/radar-rest-sources-backend diff --git a/charts/radar-rest-sources-backend/README.md b/charts/radar-rest-sources-backend/README.md index 36eea3ee..78520a44 100644 --- a/charts/radar-rest-sources-backend/README.md +++ b/charts/radar-rest-sources-backend/README.md @@ -3,7 +3,7 @@ # radar-rest-sources-backend [![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/radar-rest-sources-backend)](https://artifacthub.io/packages/helm/radar-base/radar-rest-sources-backend) -![Version: 1.2.1](https://img.shields.io/badge/Version-1.2.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 4.4.4](https://img.shields.io/badge/AppVersion-4.4.4-informational?style=flat-square) +![Version: 1.2.2](https://img.shields.io/badge/Version-1.2.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 4.4.4](https://img.shields.io/badge/AppVersion-4.4.4-informational?style=flat-square) A Helm chart for the backend application of RADAR-base Rest Sources Authorizer @@ -85,6 +85,8 @@ A Helm chart for the backend application of RADAR-base Rest Sources Authorizer | serverName | string | `"localhost"` | Resolvable server name, needed to find the advertised URL and callback URL | | managementportal_url | string | `"http://management-portal:8080/managementportal"` | URL of the Management Portal | | client_secret | string | `"secret"` | OAuth2 client secret of the radar-rest-sources-backend client from Management Portal | +| public_key_endpoints | list | `[]` | List of public key endpoints for token verification | +| auth_url | string | `"http://management-portal:8080/managementportal/oauth/token"` | Auth url for MP client | | restSourceClients.fitbit.enable | bool | `false` | set to true, if Fitbit client should be used | | restSourceClients.fitbit.sourceType | string | `"FitBit"` | Type of the data sources | | restSourceClients.fitbit.authorizationEndpoint | string | `"https://www.fitbit.com/oauth2/authorize"` | Authorization endpoint for Fitbit authentication and authorization | diff --git a/charts/radar-rest-sources-backend/templates/configmap.yaml b/charts/radar-rest-sources-backend/templates/configmap.yaml index 746c973a..010eee27 100644 --- a/charts/radar-rest-sources-backend/templates/configmap.yaml +++ b/charts/radar-rest-sources-backend/templates/configmap.yaml @@ -20,10 +20,17 @@ data: auth: # Management Portal URL managementPortalUrl: {{ .Values.managementportal_url }} + # OAuth2 Auth URL for MP Client + authUrl: {{ .Values.auth_url }} # OAuth2 Client id of rest sources authorizer backend clientId: radar_rest_sources_auth_backend # OAuth2 Client Secret of rest sources authorizer backend client clientSecret: {{ .Values.client_secret }} + # List of public key endpoints for token verification + jwksUrls: + {{- range .Values.public_key_endpoints }} + - {{ . | quote }} + {{ end -}} database: driver: org.postgresql.Driver diff --git a/charts/radar-rest-sources-backend/values.yaml b/charts/radar-rest-sources-backend/values.yaml index d176fd31..c84e86ed 100644 --- a/charts/radar-rest-sources-backend/values.yaml +++ b/charts/radar-rest-sources-backend/values.yaml @@ -242,6 +242,13 @@ managementportal_url: http://management-portal:8080/managementportal # -- OAuth2 client secret of the radar-rest-sources-backend client from Management Portal client_secret: secret +# -- List of public key endpoints for token verification +public_key_endpoints: [] + # - https://localhost/managementportal/oauth/token_key + +# -- Auth url for MP client +auth_url: http://management-portal:8080/managementportal/oauth/token + restSourceClients: fitbit: # -- set to true, if Fitbit client should be used