Skip to content

Commit

Permalink
Add more endpoints.
Browse files Browse the repository at this point in the history
  • Loading branch information
tvandort committed Jan 10, 2025
1 parent d4f470d commit e9a6fbe
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ def create_consent_request(
CONSENT_REQUEST_VERIFY,
status_code=HTTP_200_OK,
response_model=ConsentPreferences,
tags=[PUBLIC_INTERNET],
)
def consent_request_verify(
*,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from fides.api.schemas.identity_verification import IdentityVerificationConfigResponse
from fides.api.util.api_router import APIRouter
from fides.common.api.v1 import urn_registry as urls
from fides.common.api.v1.tag_registry import PUBLIC_INTERNET
from fides.config.config_proxy import ConfigProxy

router = APIRouter(tags=["Identity Verification"], prefix=urls.V1_URL_PREFIX)
Expand All @@ -16,6 +17,7 @@
@router.get(
urls.ID_VERIFICATION_CONFIG,
response_model=IdentityVerificationConfigResponse,
tags=[PUBLIC_INTERNET],
)
def get_id_verification_config(
*,
Expand Down
3 changes: 2 additions & 1 deletion src/fides/api/api/v1/endpoints/oauth_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
TOKEN,
V1_URL_PREFIX,
)
from fides.common.api.v1.tag_registry import PUBLIC_INTERNET
from fides.config import CONFIG

router = APIRouter(tags=["OAuth"], prefix=V1_URL_PREFIX)
Expand Down Expand Up @@ -223,7 +224,7 @@ def read_roles_to_scopes_mapping() -> Dict[str, List]:
return ROLES_TO_SCOPES_MAPPING


@router.get(OAUTH_CALLBACK)
@router.get(OAUTH_CALLBACK, tags=[PUBLIC_INTERNET])
def oauth_callback(code: str, state: str, db: Session = Depends(get_db)) -> Response:
"""
Uses the passed in code to generate the token access request
Expand Down
3 changes: 3 additions & 0 deletions src/fides/api/api/v1/endpoints/privacy_request_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@
REQUEST_TASKS,
V1_URL_PREFIX,
)
from fides.common.api.v1.tag_registry import PUBLIC_INTERNET
from fides.config import CONFIG
from fides.config.config_proxy import ConfigProxy

Expand Down Expand Up @@ -226,6 +227,7 @@ def get_privacy_request_or_error(
PRIVACY_REQUESTS,
status_code=HTTP_200_OK,
response_model=BulkPostPrivacyRequests,
tags=[PUBLIC_INTERNET],
)
def create_privacy_request(
*,
Expand Down Expand Up @@ -1386,6 +1388,7 @@ def _trigger_pre_approval_webhooks(
PRIVACY_REQUEST_VERIFY_IDENTITY,
status_code=HTTP_200_OK,
response_model=PrivacyRequestResponse,
tags=[PUBLIC_INTERNET],
)
def verify_identification_code(
privacy_request_id: str,
Expand Down

0 comments on commit e9a6fbe

Please sign in to comment.