summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2020-06-09 11:30:14 +0200
committerAlexander Larsson <alexander.larsson@gmail.com>2020-06-09 14:52:00 +0200
commitdf4834371a8b124556a738dbaeb6ee5a690fd7bb (patch)
tree9cec5af67e0bcfcf64326daa19ab16be2075caa8
parent8fd4277ba99bda5511b94a7c1aeb74f10f1df1f5 (diff)
downloadflatpak-df4834371a8b124556a738dbaeb6ee5a690fd7bb.tar.gz
Add AUTHENTICATION_FAILED and NOT_AUTHORIZED error codes
These allow us to report more details from authenticators
-rw-r--r--common/flatpak-error.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/flatpak-error.h b/common/flatpak-error.h
index 89122d98..5ef23378 100644
--- a/common/flatpak-error.h
+++ b/common/flatpak-error.h
@@ -61,6 +61,11 @@ G_BEGIN_DECLS
* @FLATPAK_ERROR_PERMISSION_DENIED: An operation was not allowed by the administrative policy.
* For example, an app is not allowed to be installed due
* to not complying with the parental controls policy. (Since: 1.5.1)
+ * @FLATPAK_ERROR_AUTHENTICATION_FAILED: An authentication operation failed, for example, no
+ * correct password was supplied. (Since: 1.7.3)
+ * @FLATPAK_ERROR_NOT_AUTHORIZED: An operation tried to access a ref, or information about it that it
+ * was not authorized. For example, when succesfully authenticating with a
+ * server but the user doesn't have permissions for a private ref. (Since: 1.7.3)
*
* Error codes for library functions.
*/
@@ -88,6 +93,8 @@ typedef enum {
FLATPAK_ERROR_NOT_CACHED,
FLATPAK_ERROR_REF_NOT_FOUND,
FLATPAK_ERROR_PERMISSION_DENIED,
+ FLATPAK_ERROR_AUTHENTICATION_FAILED,
+ FLATPAK_ERROR_NOT_AUTHORIZED,
} FlatpakError;
/**