Giter Site home page Giter Site logo

elifraha / contrib-fido-test-ui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mojaloop/contrib-fido-test-ui

0.0 0.0 0.0 4.1 MB

Easily generate FIDO test credentials for the Third Party API

License: Other

JavaScript 23.38% TypeScript 57.74% CSS 0.28% HTML 17.78% Dockerfile 0.83%

contrib-fido-test-ui's Introduction

FIDO Test UI

Easily generate test FIDO credentials for the Mojaloop Third Party API

See It Live This project is deployed live on the Mojaloop Sandbox at sandbox.mojaloop.io/fido

Running Locally

npm run dev
# Now go to the url it says!

Creating a Test Credential

In order to complete the Third Party API Account Linking process, you must create a Credential object to attach to the Consent issued by a DFSP.

Read more about the Third Party API Account Linking process

Since real FIDO credentials requires interaction with an end user, it's hard to create test credentials to try out the Third Party API or write automated end to end tests.

Either run this project locally, or go to sandbox.mojaloop.io/fido/create_credential to create your test credential.

At the end of the process, you will be provided a credential object, which you can send to the DFSP in PUT /consents/{ID} (or POST /linking/request-consent/{ID}/pass-credential if you are using the sync Thirdparty SDK)

Using a Test Credential

Once you have registered your credential, you can use it to sign 3PPI Transaction Requests. Read more about the Third Party API Transfer Process

Either run this project locally, or go to sandbox.mojaloop.io/fido/verify_transaction.

Copy and paste the challenge field from the POST /thirdpartyRequests/authorizations request from the DFSP (or in the response to POST /thirdpartyTransaction/{ID}/initiate if you are using the sync Thirdparty SDK)

Then paste in the credentialId of the credential you previously registered. This field may be pre-filled for you if you recently created the credential.

Click "Submit" to complete the FIDO Assertion flow and copy the FIDO Assertion Result, which you can send to the DFSP in PUT /thirdpartyRequests/authorizations/{ID} (or POST /thirdpartyTransaction/{ID}/approve if you are using the sync Thirdparty SDK)

Tested on:

  • YubiKey on Firefox with Linux
  • TouchId on Chrome with M1 Macbook Air

Have you managed to get it working! Please add to this list!

contrib-fido-test-ui's People

Contributors

kleyow avatar lewisdaly avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.