Skip to content
Snippets Groups Projects
Select Git revision
  • pu
  • passt default
  • master
  • todo
  • next
  • maint
  • v2.8.0-rc1
  • v2.8.0-rc0
  • v2.7.2
  • v2.7.1
  • v2.7.0
  • v2.6.5
  • v2.7.0-rc3
  • v2.7.0-rc2
  • v2.7.0-rc1
  • v2.7.0-rc0
  • v2.6.4
  • v2.6.3
  • v2.6.2
  • v2.6.1
  • v2.3.10
  • v2.5.4
  • v2.4.10
  • v2.6.0
  • v2.6.0-rc3
  • v2.5.3
26 results

credential.h

  • Jeff King's avatar
    59b38652
    credential: let helpers tell us to quit · 59b38652
    Jeff King authored
    
    When we are trying to fill a credential, we loop over the
    set of defined credential-helpers, then fall back to running
    askpass, and then finally prompt on the terminal. Helpers
    which cannot find a credential are free to tell us nothing,
    but they cannot currently ask us to stop prompting.
    
    This patch lets them provide a "quit" attribute, which asks
    us to stop the process entirely (avoiding running more
    helpers, as well as the askpass/terminal prompt).
    
    This has a few possible uses:
    
      1. A helper which prompts the user itself (e.g., in a
         dialog) can provide a "cancel" button to the user to
         stop further prompts.
    
      2. Some helpers may know that prompting cannot possibly
         work. For example, if their role is to broker a ticket
         from an external auth system and that auth system
         cannot be contacted, there is no point in continuing
         (we need a ticket to authenticate, and the user cannot
         provide one by typing it in).
    
    Signed-off-by: default avatarJeff King <peff@peff.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    59b38652
    History
    credential: let helpers tell us to quit
    Jeff King authored
    
    When we are trying to fill a credential, we loop over the
    set of defined credential-helpers, then fall back to running
    askpass, and then finally prompt on the terminal. Helpers
    which cannot find a credential are free to tell us nothing,
    but they cannot currently ask us to stop prompting.
    
    This patch lets them provide a "quit" attribute, which asks
    us to stop the process entirely (avoiding running more
    helpers, as well as the askpass/terminal prompt).
    
    This has a few possible uses:
    
      1. A helper which prompts the user itself (e.g., in a
         dialog) can provide a "cancel" button to the user to
         stop further prompts.
    
      2. Some helpers may know that prompting cannot possibly
         work. For example, if their role is to broker a ticket
         from an external auth system and that auth system
         cannot be contacted, there is no point in continuing
         (we need a ticket to authenticate, and the user cannot
         provide one by typing it in).
    
    Signed-off-by: default avatarJeff King <peff@peff.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>