auth_manager
AppPermission
Bases: StrEnum
Permissions for the app resource.
Source code in spark_on_k8s/api/auth/auth_manager.py
31 32 33 34 35 36 |
|
BaseAuthManager
Bases: ABC
, Generic[UserInfo]
Base class for the authentication manager.
Source code in spark_on_k8s/api/auth/auth_manager.py
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
|
authenticate(request)
abstractmethod
async
Parse the request and authenticate the user.
Source code in spark_on_k8s/api/auth/auth_manager.py
56 57 58 59 |
|
is_authorized(user, resource, actions)
abstractmethod
async
Check if the user is authorized to perform the actions on the resource.
Source code in spark_on_k8s/api/auth/auth_manager.py
61 62 63 64 |
|
HttpBasicAuthManager
Bases: BaseAuthManager[BaseUser]
HTTP basic authentication manager.
Source code in spark_on_k8s/api/auth/auth_manager.py
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
|
PermissionActions
Bases: StrEnum
Permission actions.
Source code in spark_on_k8s/api/auth/auth_manager.py
18 19 20 21 22 23 24 25 |
|
Resource
Bases: StrEnum
Spark on K8s resources API resources.
Source code in spark_on_k8s/api/auth/auth_manager.py
27 28 29 |
|