merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

taler-merchant-httpd_private-post-instances-ID-auth.h (2648B)


      1 /*
      2   This file is part of GNU Taler
      3   (C) 2021 Taler Systems SA
      4 
      5   GNU Taler is free software; you can redistribute it and/or modify
      6   it under the terms of the GNU Affero General Public License as
      7   published by the Free Software Foundation; either version 3,
      8   or (at your option) any later version.
      9 
     10   GNU Taler is distributed in the hope that it will be useful, but
     11   WITHOUT ANY WARRANTY; without even the implied warranty of
     12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13   GNU General Public License for more details.
     14 
     15   You should have received a copy of the GNU General Public
     16   License along with TALER; see the file COPYING.  If not,
     17   see <http://www.gnu.org/licenses/>
     18 */
     19 
     20 /**
     21  * @file taler-merchant-httpd_private-post-instances-ID-auth.h
     22  * @brief implements POST /instances/$ID/auth request handling
     23  * @author Christian Grothoff
     24  * @author Florian Dold
     25  */
     26 #ifndef TALER_MERCHANT_HTTPD_PRIVATE_POST_INSTANCES_ID_AUTH_H
     27 #define TALER_MERCHANT_HTTPD_PRIVATE_POST_INSTANCES_ID_AUTH_H
     28 #include "taler-merchant-httpd.h"
     29 
     30 
     31 /**
     32  * Change the instance's auth settings.
     33  * This is the handler called using the instance's own authentication.
     34  *
     35  * @param rh context of the handler
     36  * @param connection the MHD connection to handle
     37  * @param[in,out] hc context with further information about the request
     38  * @return MHD result code
     39  */
     40 MHD_RESULT
     41 TMH_private_post_instances_ID_auth (
     42   const struct TMH_RequestHandler *rh,
     43   struct MHD_Connection *connection,
     44   struct TMH_HandlerContext *hc);
     45 
     46 
     47 /**
     48  * Change the instance's auth settings.
     49  * This is the handler called using the default instance's authentication.
     50  *
     51  * @param rh context of the handler
     52  * @param connection the MHD connection to handle
     53  * @param[in,out] hc context with further information about the request
     54  * @return MHD result code
     55  */
     56 MHD_RESULT
     57 TMH_private_post_instances_default_ID_auth (
     58   const struct TMH_RequestHandler *rh,
     59   struct MHD_Connection *connection,
     60   struct TMH_HandlerContext *hc);
     61 
     62 
     63 /**
     64  * Change the instance's auth settings.
     65  * This is the public handler used to reset a password if
     66  * the original password was forgotten. Always requires
     67  * 2-FA to be configured for the account with two additional
     68  * factors.
     69  *
     70  * @param rh context of the handler
     71  * @param connection the MHD connection to handle
     72  * @param[in,out] hc context with further information about the request
     73  * @return MHD result code
     74  */
     75 MHD_RESULT
     76 TMH_public_post_instances_ID_auth (const struct TMH_RequestHandler *rh,
     77                                    struct MHD_Connection *connection,
     78                                    struct TMH_HandlerContext *hc);
     79 
     80 #endif