If the searchQuery returns an iteretor with elements that are not a dictionary, the audit module needs to provide this function, to convert the audit entry to a dictionary.
A generator that can be used to stream the audit log
Parameters: | param – |
---|---|
Returns: |
This method is called to finalize the audit_data. I.e. sign the data and write it to the database. It should hash the data and do a hash chain and sign the data
This method returns the total number of audit entries in the audit store
This method initialized the log state. The fact, that the log state was initialized, also needs to be logged. Therefor the same params are passed as i the log method.
This method is used to log the data. During a request this method can be called several times to fill the internal audit_data dictionary.
Log the number of the tokens. Can be passed like log_token_num(get_tokens(count=True))
Parameters: | count (int) – Number of tokens |
---|---|
Returns: |
Set the private and public key for the audit class. This is achieved by passing the entries.
#priv = config.get(“privacyideaAudit.key.private”) #pub = config.get(“privacyideaAudit.key.public”)
Parameters: |
|
---|---|
Returns: | None |
This function is used to search audit events.
param: Search parameters can be passed.
return: A pagination object
This function is deprecated.
This is the SQLAudit module, which writes the audit entries to an SQL database table. It requires the configuration parameters. PI_AUDIT_SQL_URI
Deletes all entries in the database table. This is only used for test cases! :return:
Returns the audit log as csv file. :param config: The current flask app configuration :type config: dict :param param: The request parameters :type param: dict :param user: The user, who issued the request :return: None. It yields results as a generator
This method is used to log the data. It should hash the data and do a hash chain and sign the data
This method returns the total number of audit entries in the audit store
Add new log details in param to the internal log data self.audit_data.
Parameters: | param (dict) – Log data that is to be added |
---|---|
Returns: | None |