| 1 | from helpers.api import ApiHandler |
| 2 | |
| 3 | |
| 4 | class PublicConnectorApiHandler(ApiHandler): |
| 5 | @classmethod |
| 6 | def requires_auth(cls) -> bool: |
| 7 | return False |
| 8 | |
| 9 | @classmethod |
| 10 | def requires_csrf(cls) -> bool: |
| 11 | return False |
| 12 | |
| 13 | @classmethod |
| 14 | def requires_api_key(cls) -> bool: |
| 15 | return False |
| 16 | |
| 17 | |
| 18 | class ProtectedConnectorApiHandler(ApiHandler): |
| 19 | @classmethod |
| 20 | def requires_auth(cls) -> bool: |
| 21 | return True |
| 22 | |
| 23 | @classmethod |
| 24 | def requires_csrf(cls) -> bool: |
| 25 | return False |
| 26 | |
| 27 | @classmethod |
| 28 | def requires_api_key(cls) -> bool: |
| 29 | return False |