summaryrefslogtreecommitdiff
path: root/imap
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2021-03-27 21:36:52 -0600
committerEduardo Chappa <chappa@washington.edu>2021-03-27 21:36:52 -0600
commitc5a870b30c43914ed8414b9f54bed3da27057d79 (patch)
tree9827efdac51b81bda6e813cadc2375415e99b734 /imap
parenta5c42906261fefe477422cf106cbd0ce934e0173 (diff)
downloadalpine-c5a870b30c43914ed8414b9f54bed3da27057d79.tar.xz
* Remove the ability to choose between the device and authorize methods
to login to outlook, since the original client-id can only be used for the device method. One needs a special client-id and client-secret to use the authorize method in Outlook.
Diffstat (limited to 'imap')
-rw-r--r--imap/src/c-client/mail.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/imap/src/c-client/mail.h b/imap/src/c-client/mail.h
index ce5e2847..9fc1c714 100644
--- a/imap/src/c-client/mail.h
+++ b/imap/src/c-client/mail.h
@@ -1941,6 +1941,10 @@ int PFLUSH (void);
#define OAUTH2_TOT_EQUIV (OAUTH2_MAX_EQUIV + 2)
#define OAUTH2_PARAM_NUMBER (7)
+#define OA2_UNKNOWN 0x00 /* We do not know what method this client-id uses */
+#define OA2_DEVICE 0x01 /* Client ID obtained by client uses Device Method */
+#define OA2_AUTHORIZE 0x10 /* Client ID obtained by client uses Authorize Method */
+
typedef enum {OA2_Id = 0,
OA2_Secret,
OA2_Tenant,
@@ -1995,6 +1999,7 @@ typedef struct oauth2_s {
unsigned int first_time:1; /* this is the first time we get credentials for this account */
unsigned int require_secret:1; /* this server requires a client-secret */
int cancel_refresh_token; /* ask client to cancel refresh token */
+ int flags; /* options to register for this method */
} OAUTH2_S;
typedef struct deviceproc_s {