diff --git a/.github/workflows/git-workflow.yml b/.github/workflows/git-workflow.yml index 8d1cb92..8323736 100644 --- a/.github/workflows/git-workflow.yml +++ b/.github/workflows/git-workflow.yml @@ -4,6 +4,9 @@ on: push: branches: - main + pull_request: + branches: + - main jobs: build_and_push_backend_to_docker_hub: diff --git a/backend/docmanager/api/credentials.json b/backend/docmanager/api/credentials.json index dbd7cbb..96ea0a9 100644 --- a/backend/docmanager/api/credentials.json +++ b/backend/docmanager/api/credentials.json @@ -1 +1 @@ -{"installed":{"client_id":"350493863594-p5fh3jb553hcrlotr5rf8h78t768463e.apps.googleusercontent.com","project_id":"valiant-house-405417","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"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","redirect_uris":["http://localhost"]}} \ No newline at end of file +{"installed":{"client_id":"350493863594-jgkuku5tl845jm65gk7ac98rg7i8u9sp.apps.googleusercontent.com","project_id":"valiant-house-405417","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_secret":"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","redirect_uris":["http://localhost"]}} \ No newline at end of file diff --git a/backend/docmanager/api/token.json b/backend/docmanager/api/token.json new file mode 100644 index 0000000..ccccf05 --- /dev/null +++ b/backend/docmanager/api/token.json @@ -0,0 +1 @@ +{"token": "ya29.a0AfB_byDaORx3ULwGcFR8xulbITlJwBi8SX28Ptf2mUibRcM5BVTn_V34ArGFQKVR4EUp1RUF0BTC4YlHiCg3ViPNtefjNQkWxsZvu6f4cfXy0CEiFy0CkAphNJ9IDTO8KepB4KPk_WRB_KvH28tjFmnGY7bAoZEH2xpdaCgYKAQUSARISFQHGX2MiFWALT66T5G5ONGFRT76gTg0171", "refresh_token": "1//0c8aJrYSVWzqvCgYIARAAGAwSNwF-L9Ir4-AXoT7b5u7IZRLnitdlxeGQ7Bz5MwyglgBZa3d5wml-kyyYMofx-D6CtBVi2iIkEhY", "token_uri": "https://oauth2.googleapis.com/token", "client_id": "350493863594-jgkuku5tl845jm65gk7ac98rg7i8u9sp.apps.googleusercontent.com", "client_secret": "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", "scopes": ["https://www.googleapis.com/auth/drive.file"], "expiry": "2023-11-18T20:36:15.441650Z"} \ No newline at end of file diff --git a/backend/docmanager/api/views.py b/backend/docmanager/api/views.py index 955819e..02ff43b 100644 --- a/backend/docmanager/api/views.py +++ b/backend/docmanager/api/views.py @@ -5,7 +5,6 @@ from django.views.decorators.csrf import csrf_exempt from drf_spectacular.utils import extend_schema from google.auth.transport.requests import Request -from google.api_core.exceptions import NotFound from google.oauth2.credentials import Credentials from google_auth_oauthlib.flow import InstalledAppFlow from googleapiclient.discovery import build