Spaces:
Runtime error
Runtime error
Disable username/password to enforce authentication via HF (#3)
Browse files- Disable username/password to enforce authentication via HF (0a0cfc93f96359b553752159447a56f042e5a5b2)
Co-authored-by: Marc Klingen <marcklingen@users.noreply.huggingface.co>
docker-entrypoint-wrapper.sh
CHANGED
|
@@ -65,6 +65,9 @@ export AUTH_CUSTOM_ISSUER=$OPENID_PROVIDER_URL
|
|
| 65 |
export AUTH_CUSTOM_SCOPE=$OAUTH_SCOPES
|
| 66 |
export AUTH_CUSTOM_NAME="Hugging Face"
|
| 67 |
|
|
|
|
|
|
|
|
|
|
| 68 |
# Start Next.js in the background
|
| 69 |
echo "Starting Next.js..."
|
| 70 |
./web/entrypoint.sh node ./web/server.js \
|
|
|
|
| 65 |
export AUTH_CUSTOM_SCOPE=$OAUTH_SCOPES
|
| 66 |
export AUTH_CUSTOM_NAME="Hugging Face"
|
| 67 |
|
| 68 |
+
# Disable authentication via username/password to enforce authentication via HF
|
| 69 |
+
export AUTH_DISABLE_USERNAME_PASSWORD="true"
|
| 70 |
+
|
| 71 |
# Start Next.js in the background
|
| 72 |
echo "Starting Next.js..."
|
| 73 |
./web/entrypoint.sh node ./web/server.js \
|