From df4834371a8b124556a738dbaeb6ee5a690fd7bb Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Tue, 9 Jun 2020 11:30:14 +0200 Subject: Add AUTHENTICATION_FAILED and NOT_AUTHORIZED error codes These allow us to report more details from authenticators --- common/flatpak-error.h | 7 +++++++ 1 file changed, 7 insertions(+) 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; /** -- cgit v1.2.1