diff options
author | Eduardo Chappa <chappa@washington.edu> | 2020-06-26 12:19:56 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2020-06-26 12:19:56 -0600 |
commit | 354674406ed866dffbcab71455f796275a63df36 (patch) | |
tree | 6cb79243d5c72f569a9a7c944558251ea4af6464 /alpine/confscroll.c | |
parent | 9a21decd8d4528c36870a86f631c754b0b63411f (diff) | |
download | alpine-354674406ed866dffbcab71455f796275a63df36.tar.xz |
* 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.
Diffstat (limited to 'alpine/confscroll.c')
-rw-r--r-- | alpine/confscroll.c | 23 |
1 files changed, 23 insertions, 0 deletions
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(); |