Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

removed unwanted oringins in dev and minor changes (#26)

ali1d4858bf58cf
diff --git a/backend/account/api_doc.md b/backend/account/api_doc.md
deleted file mode 100644
index d77e326c6..000000000
--- a/backend/account/api_doc.md
+++ /dev/null
@@ -1,202 +0,0 @@
-# Authentication APIs
-
-### Unauthorized Attempt
-
-**Status Code:** 401
-
-**Response:**
-
-```json
-{
- "message": "Unauthorized"
-}
-```
-
-### Login
-
-```http
-GET /login
-```
-
-Sample URL:
-> <base_url>/login
-
-Response: Auth0 login page
-
-### Logout
-
-```http
-GET /logout
-```
-
-Sample URL:
-> <base_url>/logout
-
-Response: OK (redirect to Auth0 page)
-
-### Signup
-
-```http
-GET /signup
-```
-
-Sample URL:
-> <base_url>/signup
-
-Response: Auth0 signup page
-
-### Get User Profile
-
-```http
-GET /profile
-```
-
-Sample URL:
-> <base_url>/unstract/<org_id>/profile
-
-Response:
-
-```json
-{
- "user": {
- "id": "6",
- "email": "[email protected]",
- "name": "Ali",
- "display_name": "Ali",
- "family_name": null,
- "picture": null
- }
-}
-```
-
-### Password Reset
-
-```http
-POST /reset_password
-```
-
-Sample URL:
-> <base_url>/unstract/<org_id>/reset_password
-
-Response:
-
-```json
-{
- "status": "failed",
- "message": "user doesn't have Username-Password-Authentication"
-}
-```
-
-### Get Organizations of User
-
-```http
-GET /organization
-```
-
-Sample URL:
-> <base_url>/organization
-
-Response:
-
-```json
-{
- "message": "success",
- "organizations": [
- {
- "id": "org_Z12elHhCcPH5rPD7",
- "display_name": "Personal Org",
- "name": "personal"
- },
- {
- "id": "org_CB46CBskR8BxFjVV",
- "display_name": "ali Test",
- "name": "ali1"
- }
- ]
-}
-```
-
-### Select an Organization to Use
-
-```http
-POST /set
-```
-
-Sample URL:
-> <base_url>/organization/<org_id>/set
-
-Response:
-
-```json
-{
- "user": {
- "id": "6",
- "email": "[email protected]",
- "name": "Ali",
- "display_name": "Ali",
- "family_name": null,
- "picture": null
- },
- "organization": {
- "display_name": "ali Test",
- "name": "ali1",
- "organization_id": "org_CB46CBskR8BxFjVV"
- }
-}
-
-```
-
-### Get Organization Members
-
-```http
-GET /members
-```
-
-Sample URL:
-> <base_url>/unstract/<org_id>/members
-
-Response:
-
-```json
-{
- "message": "success",
- "members": [
- {
- "user_id": "google-oauth2|102763382532901780910",
- "email": "[email protected]",
- "name": "",
- "picture": null
- }
- ]
-}
-```
-
-### Get Organization Info
-
-```http
-GET /organization
-```
-
-Sample URL:
-> <base_url>/unstract/<org_id>/organization
-
-Response:
-
-```json
-{
- "message": "success",
- "organization": {
- "name": "ali1",
- "display_name": "ali Test",
- "organization_id": "org_CB46CBskR8BxFjVV",
- "created_at": "2023-06-26 04:42:40.905458+00:00"
- }
-}
-```
-
-## Ref
-
-- Postman Collection : [postaman collection link](https://api.postman.com/collections/24537488-9380ea92-d1e0-45f4-827c-c5cc9d0370b8?access_key=PMAT-01H3VGHTM9SR01MHXA95G1RTWB)
-- By testing Postman
- - set cookies
- - set X-CSRFToken in header for POST request
diff --git a/backend/account/dto.py b/backend/account/dto.py
index 17037d8e9..dc60c3df4 100644
--- a/backend/account/dto.py
+++ b/backend/account/dto.py
@@ -105,7 +105,7 @@ class UserRoleData:
@dataclass
class MemberInvitation:
- """Represents an invitation to join an organization in Auth0.
+ """Represents an invitation to join an organization.
Attributes:
id (str): The unique identifier for the invitation.
diff --git a/backend/backend/settings/dev.py b/backend/backend/settings/dev.py
index 15297777b..ccc4011e7 100644
--- a/backend/backend/settings/dev.py
+++ b/backend/backend/settings/dev.py
@@ -8,14 +8,12 @@ X_FRAME_OPTIONS = "ALLOW-FROM http://localhost:3000"
CORS_ALLOWED_ORIGINS = [
"http://localhost:3000",
"http://127.0.0.1:3000",
- "https://dev-3xlzwou1raoituv0.us.auth0.com",
# Other allowed origins if needed
]
CORS_ORIGIN_WHITELIST = [
"http://localhost:3000",
"http://127.0.0.1:3000",
- "https://dev-3xlzwou1raoituv0.us.auth0.com",
# Other allowed origins if needed
]