forked from sr2/cloud-api
parent
a86cfea65a
commit
42349b0182
9 changed files with 20 additions and 44 deletions
|
|
@ -1,9 +1,8 @@
|
|||
"""
|
||||
Configurations for auth module, import auth_settings
|
||||
Configurations for the auth module
|
||||
|
||||
Configurations:
|
||||
- List: Description
|
||||
- Configs: Description
|
||||
Exports:
|
||||
- auth_settings: Contains OIDC information
|
||||
"""
|
||||
from src.config import CustomBaseSettings
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
"""
|
||||
Constants and error codes for auth module
|
||||
|
||||
Constants:
|
||||
- List: Description
|
||||
- Consts: Description
|
||||
Constants for the auth module
|
||||
"""
|
||||
|
|
@ -1,13 +1,11 @@
|
|||
"""
|
||||
Router dependencies for auth module
|
||||
Auth dependencies
|
||||
|
||||
Classes:
|
||||
- List: Description
|
||||
- Classes: Description
|
||||
|
||||
Functions:
|
||||
- List: Description
|
||||
- Functions: Description
|
||||
Exports:
|
||||
- org_query_user_claims_dependency: bool: Verifies user belongs to org
|
||||
- org_model_root_claim_query_dependency: org_model: verifies org exists and user is either root or su, gets org from query
|
||||
- org_model_root_claim_body_dependency: org_model: verifies org exists and user is either root or su, gets org from body
|
||||
- super_admin_dependency: user_model: verifies the user is a super admin
|
||||
"""
|
||||
from typing import Annotated
|
||||
from fastapi import Depends
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
"""
|
||||
Module specific exceptions for auth module
|
||||
Module specific exceptions for the auth module
|
||||
|
||||
Exceptions:
|
||||
- List: Description
|
||||
- Exceptions: Description
|
||||
- UnauthorizedException: Takes an optional message string
|
||||
"""
|
||||
from typing import Optional
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
"""
|
||||
Database models for auth module
|
||||
|
||||
Models:
|
||||
- List: Description
|
||||
- Models: Description
|
||||
Database models for the auth module
|
||||
"""
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
"""
|
||||
Router endpoints for auth module
|
||||
Contains oauth registration
|
||||
Router endpoints for the auth module
|
||||
|
||||
Endpoints:
|
||||
Exports:
|
||||
- router: fastapi.APIRouter
|
||||
"""
|
||||
from fastapi import APIRouter
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,3 @@
|
|||
"""
|
||||
Pydantic models for auth module
|
||||
|
||||
Models:
|
||||
- List: Description
|
||||
- Models: Description
|
||||
Pydantic models for the auth module
|
||||
"""
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
"""
|
||||
Module specific business logic for auth module
|
||||
Module specific business logic for the auth module
|
||||
|
||||
Exports:
|
||||
- claims_dependency
|
||||
- claims_dependency: Dict[str, Any] containing OIDC claims and database ID
|
||||
"""
|
||||
import json
|
||||
import requests
|
||||
|
|
|
|||
|
|
@ -1,11 +1,3 @@
|
|||
"""
|
||||
Non-business logic reusable functions and classes for auth module
|
||||
|
||||
Classes:
|
||||
- List: Description
|
||||
- Classes: Description
|
||||
|
||||
Functions:
|
||||
- List: Description
|
||||
- Functions: Description
|
||||
Non-business logic reusable functions and classes for the auth module
|
||||
"""
|
||||
Loading…
Add table
Add a link
Reference in a new issue