esgf_core_utils.models.auth.egi
Models relating to Authorisation for the ESGF Next Gen Core Architecture.
Attributes
Classes
Model describing Node auth info of a ESGF publisher. |
|
Model describing Project auth info of a ESGF publisher. |
|
Model describing Project auth info of a ESGF publisher. |
|
Model describing Project auth info of a ESGF publisher. |
|
Model describing Authentication information of a ESGF publisher. |
Module Contents
- esgf_core_utils.models.auth.egi.logger
- esgf_core_utils.models.auth.egi.Role
- class esgf_core_utils.models.auth.egi.Node(/, **data: Any)
Bases:
pydantic.BaseModelModel describing Node auth info of a ESGF publisher.
- id: str
- class esgf_core_utils.models.auth.egi.Project(/, **data: Any)
Bases:
pydantic.BaseModelModel describing Project auth info of a ESGF publisher.
- id: str
- class esgf_core_utils.models.auth.egi.Nodes(/, **data: Any)
Bases:
pydantic.BaseModelModel describing Project auth info of a ESGF publisher.
- class esgf_core_utils.models.auth.egi.Projects(/, **data: Any)
Bases:
pydantic.BaseModelModel describing Project auth info of a ESGF publisher.
- class esgf_core_utils.models.auth.egi.EGIAuth(/, **data: Any)
Bases:
pydantic.BaseModelModel describing Authentication information of a ESGF publisher.
- requester_data: esgf_core_utils.models.kafka.events.RequesterData
- regex: str
- authorize(collection_id: str, item: stac_pydantic.item.Item | stac_fastapi.extensions.core.transaction.request.PartialItem, role: Role, request_id: str, event_id: str) None
Check for appropriate authorisation.
- Args:
collection_id: collection id of request item (Item): item to be authorised role (Role): required role for auhroisation
- Raises:
AuthorizationException: Raised if either node or role permission is missing
- add(entitlements: list[str]) None
add entitlements to Authorizer.
- Args:
entitlements (list[str]): list of entitlements to be added