Skip to content

Commit

Permalink
add support for daa access tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
nr23730 committed Jan 23, 2024
1 parent 0841c2a commit 101445a
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ AUTHENTICATE=false # either false or oauth2
# Please keep in mind that, unless specified, a study will be public by default!
#ALWAYS_SHOW_STUDY_GROUP=PUBLIC

# On instances with authentication it is possible to generate permanent data access tokens.
# To enable this feature, uncomment this line. By default this feature is disabled.
#DATA_ACCESS_TOKEN=oauth2

# keycloak for fhirspark
#KEYCLOAK_CLIENT_FHIRSPARK=
#KEYCLOAK_SECRET_FHIRSPARK=
Expand Down
8 changes: 8 additions & 0 deletions compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ services:
"-Dspring.security.oauth2.client.provider.keycloak.issuer-uri=${KEYCLOAK_REALM:-}",
"-Dspring.security.oauth2.client.registration.keycloak.client-id=${KEYCLOAK_CLIENT_CBIOPORTAL:-}",
"-Dspring.security.oauth2.client.registration.keycloak.client-secret=${KEYCLOAK_SECRET_CBIOPORTAL:-}",
"-Ddat.method=${DATA_ACCESS_TOKEN:-none}",
"-Ddat.oauth2.clientId=${KEYCLOAK_CLIENT_CBIOPORTAL:-}",
"-Ddat.oauth2.clientSecret=${KEYCLOAK_SECRET_CBIOPORTAL:-}",
"-Ddat.oauth2.issuer=${KEYCLOAK_REALM:-}",
"-Ddat.oauth2.accessTokenUri=${KEYCLOAK_REALM:-}/protocol/openid-connect/token",
"-Ddat.oauth2.userAuthorizationUri=${KEYCLOAK_REALM:-}/protocol/openid-connect/auth",
"-Ddat.oauth2.jwkUrl=${KEYCLOAK_REALM:-}/protocol/openid-connect/certs",
"-Ddat.oauth2.redirectUri=${CBIOPORTAL_URL}/api/data-access-token/oauth2",
"-Dsecurity.cors.allowed-origins=*",
"-Dserver.tomcat.remoteip.port-header=X-Forwarded-Port",
"-Dserver.tomcat.remoteip.protocol-header=X-Forwarded-Proto",
Expand Down
8 changes: 8 additions & 0 deletions compose-research.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ services:
"-Dspring.security.oauth2.client.provider.keycloak.issuer-uri=${KEYCLOAK_REALM:-}",
"-Dspring.security.oauth2.client.registration.keycloak.client-id=${KEYCLOAK_CLIENT_CBIOPORTAL:-}",
"-Dspring.security.oauth2.client.registration.keycloak.client-secret=${KEYCLOAK_SECRET_CBIOPORTAL:-}",
"-Ddat.method=${DATA_ACCESS_TOKEN:-none}",
"-Ddat.oauth2.clientId=${KEYCLOAK_CLIENT_CBIOPORTAL:-}",
"-Ddat.oauth2.clientSecret=${KEYCLOAK_SECRET_CBIOPORTAL:-}",
"-Ddat.oauth2.issuer=${KEYCLOAK_REALM:-}",
"-Ddat.oauth2.accessTokenUri=${KEYCLOAK_REALM:-}/protocol/openid-connect/token",
"-Ddat.oauth2.userAuthorizationUri=${KEYCLOAK_REALM:-}/protocol/openid-connect/auth",
"-Ddat.oauth2.jwkUrl=${KEYCLOAK_REALM:-}/protocol/openid-connect/certs",
"-Ddat.oauth2.redirectUri=${CBIOPORTAL_URL}/api/data-access-token/oauth2",
"-Dsecurity.cors.allowed-origins=*",
"-Dserver.tomcat.remoteip.port-header=X-Forwarded-Port",
"-Dserver.tomcat.remoteip.protocol-header=X-Forwarded-Proto",
Expand Down
8 changes: 8 additions & 0 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ services:
"-Dspring.security.oauth2.client.provider.keycloak.issuer-uri=${KEYCLOAK_REALM:-}",
"-Dspring.security.oauth2.client.registration.keycloak.client-id=${KEYCLOAK_CLIENT_CBIOPORTAL:-}",
"-Dspring.security.oauth2.client.registration.keycloak.client-secret=${KEYCLOAK_SECRET_CBIOPORTAL:-}",
"-Ddat.method=${DATA_ACCESS_TOKEN:-none}",
"-Ddat.oauth2.clientId=${KEYCLOAK_CLIENT_CBIOPORTAL:-}",
"-Ddat.oauth2.clientSecret=${KEYCLOAK_SECRET_CBIOPORTAL:-}",
"-Ddat.oauth2.issuer=${KEYCLOAK_REALM:-}",
"-Ddat.oauth2.accessTokenUri=${KEYCLOAK_REALM:-}/protocol/openid-connect/token",
"-Ddat.oauth2.userAuthorizationUri=${KEYCLOAK_REALM:-}/protocol/openid-connect/auth",
"-Ddat.oauth2.jwkUrl=${KEYCLOAK_REALM:-}/protocol/openid-connect/certs",
"-Ddat.oauth2.redirectUri=${CBIOPORTAL_URL}/api/data-access-token/oauth2",
"-Dsecurity.cors.allowed-origins=*",
"-Dserver.tomcat.remoteip.port-header=X-Forwarded-Port",
"-Dserver.tomcat.remoteip.protocol-header=X-Forwarded-Proto",
Expand Down

0 comments on commit 101445a

Please sign in to comment.