Skip to content
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
27 changes: 7 additions & 20 deletions config/app-config-rhdh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,16 @@ auth:
session:
secret: superSecretSecret
providers:
oidc:
github:
production:
metadataUrl: "${KEYCLOAK_METADATA_URL}"
clientId: "${KEYCLOAK_CLIENT_ID}"
clientSecret: "${KEYCLOAK_CLIENT_SECRET}"
prompt: auto
callbackUrl: "${RHDH_BASE_URL}/api/auth/oidc/handler/frame"
clientSecret: ${GITHUB_OAUTH_APP_SECRET}
clientId: ${GITHUB_OAUTH_APP_ID}
callbackUrl: ${RHDH_BASE_URL}/api/auth/github/handler/frame
signIn:
resolvers:
- resolver: emailLocalPartMatchingUserEntityName
signInPage: oidc
- resolver: usernameMatchingUserEntityName
dangerouslyAllowSignInWithoutUserInCatalog: true
signInPage: github
catalog:
import:
entityFilename: catalog-info.yaml
Expand All @@ -34,15 +33,3 @@ catalog:
target: https://github.com/redhat-developer/rhdh/blob/main/catalog-entities/all.yaml
- type: url
target: https://github.com/redhat-developer/red-hat-developer-hub-software-templates/blob/main/templates.yaml
providers:
keycloakOrg:
default:
baseUrl: "${KEYCLOAK_BASE_URL}"
loginRealm: "${KEYCLOAK_LOGIN_REALM}"
realm: "${KEYCLOAK_REALM}"
clientId: "${KEYCLOAK_CLIENT_ID}"
clientSecret: "${KEYCLOAK_CLIENT_SECRET}"
schedule:
frequency: { minutes: 3 }
initialDelay: { seconds: 15 }
timeout: { minutes: 5 }
6 changes: 3 additions & 3 deletions config/dynamic-plugins.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
includes:
- dynamic-plugins.default.yaml
plugins:
- package: ./dynamic-plugins/dist/backstage-community-plugin-catalog-backend-module-keycloak-dynamic
disabled: false
plugins: []
# - package: ./dynamic-plugins/dist/backstage-community-plugin-catalog-backend-module-keycloak-dynamic
# disabled: false

8 changes: 2 additions & 6 deletions config/rhdh-secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,5 @@ metadata:
type: Opaque
stringData:
RHDH_BASE_URL: $RHDH_BASE_URL
KEYCLOAK_BASE_URL: $KEYCLOAK_BASE_URL
KEYCLOAK_METADATA_URL: $KEYCLOAK_METADATA_URL
KEYCLOAK_LOGIN_REALM: $KEYCLOAK_LOGIN_REALM
KEYCLOAK_REALM: $KEYCLOAK_REALM
KEYCLOAK_CLIENT_ID: $KEYCLOAK_CLIENT_ID
KEYCLOAK_CLIENT_SECRET: $KEYCLOAK_CLIENT_SECRET
GITHUB_OAUTH_APP_SECRET: $GITHUB_OAUTH_APP_SECRET
GITHUB_OAUTH_APP_ID: $GITHUB_OAUTH_APP_ID
2 changes: 1 addition & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fi

# Deploy Keycloak with users and roles.
# comment this out if you don't want to deploy Keycloak or use your own Keycloak instance.
source utils/keycloak/keycloak-deploy.sh $namespace
# source utils/keycloak/keycloak-deploy.sh $namespace

[[ "${OPENSHIFT_CI}" != "true" ]] && source .env
# source utils/utils.sh
Expand Down