diracx

DIRAC.FrameworkSystem.Utilities.diracx.TheImpersonator(credDict: dict[str, Any], *, source: str = '') Generator[SyncDiracClient, None, None]

Client to be used by DIRAC server needing to impersonate a user for diracx. It queries a token, places it in a file, and returns the SyncDiracClient class

Use as a context manager

DIRAC.FrameworkSystem.Utilities.diracx.diracxVerifyConfig(cfgData)

Verify CS config using DiracX config validation

Parameters:

cfgData – CFG data

Returns:

Value: diracx Config validation

Return type:

S_OK | S_ERROR

DIRAC.FrameworkSystem.Utilities.diracx.get_token(username: str, group: str, dirac_properties: set[str], *, expires_minutes: int | None = None, source: str = '')

Do a legacy exchange to get a DiracX access_token+refresh_token

The source parameter only purpose is to appear in the URL on diracx logs