From 354674406ed866dffbcab71455f796275a63df36 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Fri, 26 Jun 2020 12:19:56 -0600 Subject: * Expansion of the configuration screen for XOAUTH2 to include username, and tenant. * If a user has more than one client-id for a service, Alpine tries to asks the user which client-id to use and associates that client-id to the credentials in the XOAUTH2 configuration screen. --- alpine/confscroll.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'alpine/confscroll.c') diff --git a/alpine/confscroll.c b/alpine/confscroll.c index ee182b21..db7d2cf0 100644 --- a/alpine/confscroll.c +++ b/alpine/confscroll.c @@ -33,6 +33,7 @@ static char rcsid[] = "$Id: confscroll.c 1169 2008-08-27 06:42:06Z hubert@u.wash #include "talk.h" #include "setup.h" #include "smime.h" +#include "xoauth2conf.h" #include "../pith/state.h" #include "../pith/flag.h" #include "../pith/list.h" @@ -1318,6 +1319,28 @@ no_down: q_status_message(SM_ORDER,0,3, _("Moved to bottom")); break; + case MC_XSHELP: /* help! */ + if(FOOTER_ROWS(ps) == 1 && km_popped == 0){ + km_popped = 2; + ps->mangled_footer = 1; + break; + } + + prev_redrawer = ps_global->redrawer; + helper(h_xoauth2_config_screen, "XOAUTH2 CONFIGURATION SCREEN", HLPD_SIMPLE); + ps_global->redrawer = prev_redrawer; + ps->mangled_screen = 1; + break; + + case MC_XSDELETE: /* Send caller to delete XOAUTH2 info */ + case MC_XSADD: /* Send caller to add XOAUTH2 info */ + if(pos){ + *pos = get_confline_number(screen->current); + done++; + retval = cmd == MC_XSADD ? 4 : 5; + } + break; + case MC_REPAINT: /* redraw the display */ case MC_RESIZE: ClearScreen(); -- cgit v1.2.3-54-g00ecf