Mock auth UI provides generic authentication simulation interface controlled through the GET parameter
login_hint
. The user input is returned through callback redirect inside the GET parameter code
as
base64 encoded JSON.
MockASPSP and MockASPSPBusiness connectors are using this UI for authorization methods using REDIRECT approach.
Desired credentials to be displayed are to be passed into the GET parameter login_hint
. The code
parameter in the callback redirect URI (set via redirect_uri
) will contain base64 encoded JSON object
with the data input into the generate form (in the field credentials
) and some additional data.
Login hint:
base64({"credentials":[{"name":"userId","title":"User ID","description":"User ID description"}]})
Mock auth URL:
Callback URL:
code == base64({"createdAt":1638739119,"credentials":{"userId":"123"}})
Login hint:
base64({"credentials":[{"name":"email","title":"E-mail"},{"name":"password","title":"Password"}]})
Mock auth URL:
Callback URL:
code == base64({"createdAt":1638739009,"credentials":{"email":"[email protected]","password":"abc"}})
yarn install
yarn serve
yarn build
yarn lint