get_temporary_authorization_id


Description:

public unowned string? get_temporary_authorization_id ()

Gets the opaque temporary authorization id for this if this indicates the subject is authorized and the authorization is temporary rather than one-shot or permanent.

You can use this string together with the result from enumerate_temporary_authorizations to get more details about the temporary authorization or revoke_temporary_authorization_by_id to revoke the temporary authorization.

If the subject is not authorized, use get_retains_authorization to check if the authorization will be retained if obtained via authentication.

This method simply reads the value of the key/value pair in details with the key <literal> polkit.temporary_authorization_id</literal>.

Parameters:

this

A AuthorizationResult.

Returns:

The opaque temporary authorization id for this or null if not available. Do not free this string, it is owned by this.