diff --git a/auth_config.json b/auth_config.json deleted file mode 100644 index 842ad22..0000000 --- a/auth_config.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "auth": { - "passportjs": [ - { - "provider1": { - "type": "oauth", - "OAUTH_AUTHORIZATION_URL": "https://www.testurl.com/oauth2/authorize", - "OAUTH_TOKEN_URL": "https://www.testurl.com/oauth2/token", - "OAUTH_CLIENT_ID": "your_oauth_client_id", - "OAUTH_CLIENT_SECRET": "your_oauth_client_secret", - "OAUTH_CALLBACK_URL": "https://localhost:3000/auth/provider/callback", - "OAUTH_ADD_SCOPE": "scopes", - "OAUTH_ROLE_TEACHER_VALUE": "teacher-claim-value", - "OAUTH_ROLE_STUDENT_VALUE": "student-claim-value" - } - }, - { - "provider2": { - "type": "oidc", - "OIDC_CLIENT_ID": "your_oidc_client_id", - "OIDC_CLIENT_SECRET": "your_oidc_client_secret", - "OIDC_ISSUER_URL": "https://your-issuer.com", - "OIDC_CALLBACK_URL": "http://localhost:3000/auth/oidc/callback", - "OIDC_ADD_SCOPE": "scopes", - "OIDC_ROLE_TEACHER_VALUE": "teacher-claim-value", - "OIDC_ROLE_STUDENT_VALUE": "student-claim-value" - } - } - ], - "simple-login": { - "enabled": true, - "name": "provider3", - "SESSION_SECRET": "your_session_secret" - } - } -} \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index 077e2ae..947fb2a 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -24,7 +24,7 @@ services: JWT_SECRET: haQdgd2jp09qb897GeBZyJetC8ECSpbFJe FRONTEND_URL: "http://localhost:5173" volumes: - - ./auth_config.json:/usr/src/app/serveur/config/auth_config.json + - ./server/auth_config.json:/usr/src/app/serveur/config/auth_config.json depends_on: - mongo restart: always