'Using client certificates in ReactJS
we are building a React UI platform website. We need to call a third party RESTFul service which requires us to attached a client certificate for authentication in the RESTful requsts. We can't find a solution in React to do this - does anyone have any suggestions?
Solution 1:[1]
I don't think you would need to write piece of code to handle, since its browser based request, accepting a certs in web browser will be sufficient.
There are couple of ways to have the certificate enabled from your browser,
Access the Rest API Endpoint(https) in web browser, when you open first time, bowser will ask you to select the certificate, choose the right one and accept it. the rest will be handled by your web browser. whenever application/website request the data from https endpoints browser will serve the already accepted certificate.
open the website in which you consume Https endpoints, prior to making a request browser will ask you to accept the certs on the first time, upon accepting the certs browser will serve the certs for every requests.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | DharmanBot |