Class KycAuthController
- java.lang.Object
-
- io.mosip.authentication.service.kyc.controller.KycAuthController
-
@RestController public class KycAuthController extends Object
TheAuthController
used to handle all the authentication requests.- Author:
- Arun Bose, Prem Kumar, Nagarjuna K
-
-
Constructor Summary
Constructors Constructor Description KycAuthController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EKycAuthResponseDTO
processKyc(EkycAuthRequestDTO ekycAuthRequestDTO, org.springframework.validation.Errors errors, String mispLK, String partnerId, String partnerApiKey, javax.servlet.http.HttpServletRequest request)
Controller Method to auhtentication for eKyc-Details.KycAuthResponseDTO
processKycAuth(AuthRequestDTO authRequestDTO, org.springframework.validation.Errors errors, String mispLK, String partnerId, String oidcClientId, javax.servlet.http.HttpServletRequest request)
Controller Method to Initiate IdP Auth (kyc-auth).KycExchangeResponseDTO
processKycExchange(KycExchangeRequestDTO kycExchangeRequestDTO, org.springframework.validation.Errors errors, String mispLK, String partnerId, String oidcClientId, javax.servlet.http.HttpServletRequest request)
Controller Method for Kyc-exchange.
-
-
-
Method Detail
-
processKyc
@PostMapping(path="/kyc/{MISP-LK}/{eKYC-Partner-ID}/{API-Key}", consumes="application/json", produces="application/json") public EKycAuthResponseDTO processKyc(@Validated @RequestBody EkycAuthRequestDTO ekycAuthRequestDTO, org.springframework.validation.Errors errors, @PathVariable("MISP-LK") String mispLK, @PathVariable("eKYC-Partner-ID") String partnerId, @PathVariable("API-Key") String partnerApiKey, javax.servlet.http.HttpServletRequest request) throws IdAuthenticationBusinessException, IdAuthenticationAppException, IdAuthenticationDaoException
Controller Method to auhtentication for eKyc-Details.- Parameters:
ekycAuthRequestDTO
- the kyc auth request DTOerrors
- the errors- Returns:
- kycAuthResponseDTO the kyc response DTO
- Throws:
IdAuthenticationBusinessException
- the id authentication business exceptionIdAuthenticationAppException
- the id authentication app exceptionIdAuthenticationDaoException
- the id authentication dao exception
-
processKycAuth
@PostMapping(path="/kyc-auth/delegated/{IdP-LK}/{Auth-Partner-ID}/{OIDC-Client-Id}", consumes="application/json", produces="application/json") public KycAuthResponseDTO processKycAuth(@Validated @RequestBody AuthRequestDTO authRequestDTO, org.springframework.validation.Errors errors, @PathVariable("IdP-LK") String mispLK, @PathVariable("Auth-Partner-ID") String partnerId, @PathVariable("OIDC-Client-Id") String oidcClientId, javax.servlet.http.HttpServletRequest request) throws IdAuthenticationBusinessException, IdAuthenticationAppException, IdAuthenticationDaoException
Controller Method to Initiate IdP Auth (kyc-auth).- Parameters:
authRequestDTO
- the kyc auth request DTOerrors
- the errors- Returns:
- kycAuthResponseDTO the kyc auth response DTO
- Throws:
IdAuthenticationBusinessException
- the id authentication business exceptionIdAuthenticationAppException
- the id authentication app exceptionIdAuthenticationDaoException
- the id authentication dao exception
-
processKycExchange
@PostMapping(path="/kyc-exchange/delegated/{IdP-LK}/{Auth-Partner-ID}/{OIDC-Client-Id}", consumes="application/json", produces="application/json") public KycExchangeResponseDTO processKycExchange(@Validated @RequestBody KycExchangeRequestDTO kycExchangeRequestDTO, org.springframework.validation.Errors errors, @PathVariable("IdP-LK") String mispLK, @PathVariable("Auth-Partner-ID") String partnerId, @PathVariable("OIDC-Client-Id") String oidcClientId, javax.servlet.http.HttpServletRequest request) throws IdAuthenticationBusinessException, IdAuthenticationAppException, IdAuthenticationDaoException
Controller Method for Kyc-exchange.- Parameters:
kycExchangeRequestDTO
- the kyc exchange request DTOerrors
- the errors- Returns:
- KycExchangeResponseDTO the kyc exchange response DTO
- Throws:
IdAuthenticationBusinessException
- the id authentication business exceptionIdAuthenticationAppException
- the id authentication app exceptionIdAuthenticationDaoException
- the id authentication dao exception
-
-