cfxdb.mrealm.principal¶
Classes¶
Principals created for use with WAMP authentication. A principal represents the identity |
Module Contents¶
- class Principal(oid: uuid.UUID | None = None, label: str | None = None, description: str | None = None, tags: List[str] | None = None, modified: int | None = None, arealm_oid: uuid.UUID | None = None, authid: str | None = None, role_oid: uuid.UUID | None = None, authextra: dict | None = None, _unknown=None)[source]¶
Bases:
cfxdb.common.ConfigurationElementPrincipals created for use with WAMP authentication. A principal represents the identity an application client is authenticated to the application realm joined.
A principal must have at least one
cfxdb.mrealmschema.Credentialadded. When an application client connects, it will offer anauthmethodand request arealmand (usually)authid. When a matchingcfxdb.mrealmschema.Credentialis found, and authentication succeeds using that, the client will be authenticated under thecfxdb.mrealmschema.Principalassociated with the credential.Note
It is important to note that while the
realmandauthidrequested by the client (and defined in the respectivecfxdb.mrealmschema.Credential) will usually be identical to therealmandauthidactually assigned (as defined in thecfxdb.mrealmschema.Principalassociated with the credential), this is allowed to differ in general.- copy(other, overwrite=False)[source]¶
Copy over other object.
- Parameters:
other (instance of
cfxdb.mrealm.Principal) – Other principal to copy data from.- Returns: