Skip to content

srinivas1729/hello-attestation-server-node

Repository files navigation

Hello Attestation Server for Node

The repo provides an example REST API Server that can check the integrity of clients and their requests. It supports iOS clients (for now) and the clients need to use App Attest API's to certify their integrity (reference). This server checks the integrity using guidance here.

The server is implemented using Node.js and Express framework. It uses appattest-checker-nodelibrary for core of the Attestation verification. An example client app that uses Attestation can be found at RNHelloAttestationClient.

Steps to run this server

Common setup

  1. Clone this repo.
  2. npm install

Using VSCode + REST Client extension

  1. Use VSCode and install REST Client extension.
  2. Use common env params: cp sample.env .env. This contains the test App id that made sample requests in requests/*.http files. Without this step, the server will error out at startup.
  3. Run the server: npm run dev
  4. Open up files request/registerAppAttestKey.http and request/highValueRequest.http. Execute the requests one by one. They show the sequence of requests a client would execute to first register their public Attestation Key and then make high-value requests.

Using RNHelloAttestationClient

See instructions in RNHelloAttestationClient repo to get your app building and running. From Xcode, get the app-Id. It should be of the form: <team-id>.<bundle-id>.

  1. Setup config for the server. cp sample.env .env. Then replace IOS_APP_ID in .env with your app-Id.
  2. Run the server: npm run dev.
  3. Run the app and use its UI to register App Attest keys and make attested requests.

About

Example Node+Express based server using Attestation to verify Mobile app invoking APIs

Resources

License

Stars

3 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors