mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-07 16:54:16 +01:00
Fix quickstart script incompatibility with latest Zitadel version (#1400)
This commit is contained in:
parent
bc3d647d6b
commit
5469de53c5
@ -312,7 +312,7 @@ delete_auto_service_user() {
|
|||||||
|
|
||||||
init_zitadel() {
|
init_zitadel() {
|
||||||
echo -e "\nInitializing Zitadel with NetBird's applications\n"
|
echo -e "\nInitializing Zitadel with NetBird's applications\n"
|
||||||
INSTANCE_URL="$NETBIRD_HTTP_PROTOCOL://$NETBIRD_DOMAIN:$NETBIRD_PORT"
|
INSTANCE_URL="$NETBIRD_HTTP_PROTOCOL://$NETBIRD_DOMAIN"
|
||||||
|
|
||||||
TOKEN_PATH=./machinekey/zitadel-admin-sa.token
|
TOKEN_PATH=./machinekey/zitadel-admin-sa.token
|
||||||
|
|
||||||
@ -472,7 +472,7 @@ initEnvironment() {
|
|||||||
echo -e "\nStarting NetBird services\n"
|
echo -e "\nStarting NetBird services\n"
|
||||||
$DOCKER_COMPOSE_COMMAND up -d
|
$DOCKER_COMPOSE_COMMAND up -d
|
||||||
echo -e "\nDone!\n"
|
echo -e "\nDone!\n"
|
||||||
echo "You can access the NetBird dashboard at $NETBIRD_HTTP_PROTOCOL://$NETBIRD_DOMAIN:$NETBIRD_PORT"
|
echo "You can access the NetBird dashboard at $NETBIRD_HTTP_PROTOCOL://$NETBIRD_DOMAIN"
|
||||||
echo "Login with the following credentials:"
|
echo "Login with the following credentials:"
|
||||||
echo "Username: $ZITADEL_ADMIN_USERNAME" | tee .env
|
echo "Username: $ZITADEL_ADMIN_USERNAME" | tee .env
|
||||||
echo "Password: $ZITADEL_ADMIN_PASSWORD" | tee -a .env
|
echo "Password: $ZITADEL_ADMIN_PASSWORD" | tee -a .env
|
||||||
@ -608,14 +608,14 @@ renderManagementJson() {
|
|||||||
"IdpManagerConfig": {
|
"IdpManagerConfig": {
|
||||||
"ManagerType": "zitadel",
|
"ManagerType": "zitadel",
|
||||||
"ClientConfig": {
|
"ClientConfig": {
|
||||||
"Issuer": "$NETBIRD_HTTP_PROTOCOL://$NETBIRD_DOMAIN:$NETBIRD_PORT",
|
"Issuer": "$NETBIRD_HTTP_PROTOCOL://$NETBIRD_DOMAIN",
|
||||||
"TokenEndpoint": "$NETBIRD_HTTP_PROTOCOL://$NETBIRD_DOMAIN:$NETBIRD_PORT/oauth/v2/token",
|
"TokenEndpoint": "$NETBIRD_HTTP_PROTOCOL://$NETBIRD_DOMAIN/oauth/v2/token",
|
||||||
"ClientID": "$NETBIRD_IDP_MGMT_CLIENT_ID",
|
"ClientID": "$NETBIRD_IDP_MGMT_CLIENT_ID",
|
||||||
"ClientSecret": "$NETBIRD_IDP_MGMT_CLIENT_SECRET",
|
"ClientSecret": "$NETBIRD_IDP_MGMT_CLIENT_SECRET",
|
||||||
"GrantType": "client_credentials"
|
"GrantType": "client_credentials"
|
||||||
},
|
},
|
||||||
"ExtraConfig": {
|
"ExtraConfig": {
|
||||||
"ManagementEndpoint": "$NETBIRD_HTTP_PROTOCOL://$NETBIRD_DOMAIN:$NETBIRD_PORT/management/v1"
|
"ManagementEndpoint": "$NETBIRD_HTTP_PROTOCOL://$NETBIRD_DOMAIN/management/v1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"PKCEAuthorizationFlow": {
|
"PKCEAuthorizationFlow": {
|
||||||
@ -633,12 +633,12 @@ EOF
|
|||||||
renderDashboardEnv() {
|
renderDashboardEnv() {
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
# Endpoints
|
# Endpoints
|
||||||
NETBIRD_MGMT_API_ENDPOINT=$NETBIRD_HTTP_PROTOCOL://$NETBIRD_DOMAIN:$NETBIRD_PORT
|
NETBIRD_MGMT_API_ENDPOINT=$NETBIRD_HTTP_PROTOCOL://$NETBIRD_DOMAIN
|
||||||
NETBIRD_MGMT_GRPC_API_ENDPOINT=$NETBIRD_HTTP_PROTOCOL://$NETBIRD_DOMAIN:$NETBIRD_PORT
|
NETBIRD_MGMT_GRPC_API_ENDPOINT=$NETBIRD_HTTP_PROTOCOL://$NETBIRD_DOMAIN
|
||||||
# OIDC
|
# OIDC
|
||||||
AUTH_AUDIENCE=$NETBIRD_AUTH_CLIENT_ID
|
AUTH_AUDIENCE=$NETBIRD_AUTH_CLIENT_ID
|
||||||
AUTH_CLIENT_ID=$NETBIRD_AUTH_CLIENT_ID
|
AUTH_CLIENT_ID=$NETBIRD_AUTH_CLIENT_ID
|
||||||
AUTH_AUTHORITY=$NETBIRD_HTTP_PROTOCOL://$NETBIRD_DOMAIN:$NETBIRD_PORT
|
AUTH_AUTHORITY=$NETBIRD_HTTP_PROTOCOL://$NETBIRD_DOMAIN
|
||||||
USE_AUTH0=false
|
USE_AUTH0=false
|
||||||
AUTH_SUPPORTED_SCOPES="openid profile email offline_access"
|
AUTH_SUPPORTED_SCOPES="openid profile email offline_access"
|
||||||
AUTH_REDIRECT_URI=/nb-auth
|
AUTH_REDIRECT_URI=/nb-auth
|
||||||
|
Loading…
Reference in New Issue
Block a user