Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OAuth client to management portal for CI e2e testing #272

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/management-portal/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "2.1.5"
description: A Helm chart for RADAR-Base Management Portal to manage projects and participants throughout RADAR-base.
name: management-portal
version: 1.2.5
version: 1.3.0
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/management-portal
Expand Down
2 changes: 1 addition & 1 deletion charts/management-portal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# management-portal
[![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/management-portal)](https://artifacthub.io/packages/helm/radar-base/management-portal)

![Version: 1.2.5](https://img.shields.io/badge/Version-1.2.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.1.5](https://img.shields.io/badge/AppVersion-2.1.5-informational?style=flat-square)
![Version: 1.3.0](https://img.shields.io/badge/Version-1.3.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.1.5](https://img.shields.io/badge/AppVersion-2.1.5-informational?style=flat-square)

A Helm chart for RADAR-Base Management Portal to manage projects and participants throughout RADAR-base.

Expand Down
2 changes: 1 addition & 1 deletion charts/management-portal/templates/secrets-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ client_id;resource_ids;client_secret;scope;authorized_grant_types;redirect_uri;a
{{- end -}}
{{- end -}}
{{- end -}}
{{- end}}
{{- end -}}
apiVersion: v1
kind: Secret
metadata:
Expand Down
52 changes: 52 additions & 0 deletions charts/management-portal/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -595,3 +595,55 @@ oauth_clients:
authorized_grant_types:
- client_credentials
access_token_validity: 900

# This client is used for the CI to authenticate with the Management Portal
# Tokens obtained with it can be used for every activity in the platform.
ci_test_client:
# WARNING: never enable in production!
enable: false
resource_ids:
- res_ManagementPortal
- res_appconfig
- res_gateway
- res_upload
- res_restAuthorizer
- res_DataDashboardAPI
- res_appserver
- res_fitbit
- res_push
- res_integration
- res_redcap
# This secret is never randomized because it is used by the CI.
client_secret: secret
scope:
- PROJECT.CREATE
- PROJECT.READ
- PROJECT.UPDATE
- USER.CREATE
- USER.READ
- USER.UPDATE
- SUBJECT.CREATE
- SUBJECT.READ
- SUBJECT.UPDATE
- ROLE.CREATE
- ROLE.READ
- ROLE.UPDATE
- SOURCE.CREATE
- SOURCE.READ
- SOURCE.UPDATE
- SOURCEDATA.CREATE
- SOURCEDATA.READ
- SOURCEDATA.UPDATE
- SOURCETYPE.CREATE
- SOURCETYPE.READ
- SOURCETYPE.UPDATE
- MEASUREMENT.CREATE
- MEASUREMENT.READ
- MEASUREMENT.UPDATE
authorized_grant_types:
- refresh_token
- authorization_code
- client_credentials
access_token_validity: 86400000
refresh_token_validity: 86400000
additional_information: '{"dynamic_registration": true}'
Loading