This repository contains GitHub Actions workflows for handling Consent API requests and Financial Information (FI) requests. These workflows automate the process of initiating consent requests, handling consent handles, and sending FI requests efficiently.
This workflow allows you to initiate a consent request using GitHub Actions. It is triggered manually via workflow_dispatch and requires the following inputs:
fiu_token: Access token issued to FIU for initiating the consent request (Required).private_key: FIU private key for signing the request (Required).mobile_number: Customer's registered mobile number (Default:8889997771, Required).aa_recipient_id: Account Aggregator recipient ID (Default:AA-SIMULATOR, Required).
Runs on ubuntu-latest and performs the following steps:
- Install Dependencies: Installs
axios,jose, anduuid. - Sign JWS and Send Request: Executes
consent.jsto sign the JWS and send the consent request using environment variables:MOBILE_NUMBERPRIVATE_KEYFIU_TOKENAA_RECIPIENT_ID
- Upload Consent Data Artifact: Stores the consent data as an artifact named
consent_dataatconsent.json.
This workflow handles consent requests and sends FI requests. It is triggered manually via workflow_dispatch and requires the following inputs:
fiu_token: Access token issued to FIU for initiating the consent request (Required).private_key: FIU private key for signing the request (Required).aa_recipient_id: Account Aggregator recipient ID (Default:AA-SIMULATOR, Required).txn_id: Transaction ID (Required).consent_handle: Consent Handle (Required).
Runs on ubuntu-latest and performs the following steps:
- Install Dependencies: Installs
axios,jose, anduuid. - Sign JWS and Send Request: Executes
consent-fi-request.jsto sign the JWS and send the FI request using environment variables:PRIVATE_KEYFIU_TOKENAA_RECIPIENT_IDTXN_IDCONSENT_HANDLE
- Upload FI Request Data Artifact: Stores the FI request data as an artifact named
fi_requestatfi_request.json.
This workflow allows you to fetch Financial Information (FI) using GitHub Actions. It is triggered manually via workflow_dispatch and requires the following inputs:
fiu_token: Access token issued to FIU for initiating the consent request (Required).private_key: FIU private key for signing the request (Required).aa_recipient_id: Account Aggregator recipient ID (Default:AA-SIMULATOR, Required).txn_id: Transaction ID (Required).session_id: Session ID (Required).
Runs on ubuntu-latest and performs the following steps:
- Install Dependencies: Installs
axios,jose, anduuid. - Sign JWS and Send Request: Executes
fi-fetch.jsto sign the JWS and send the FI request using environment variables:PRIVATE_KEYFIU_TOKENAA_RECIPIENT_IDTXN_IDSESSION_ID
- Upload FI Request Data Artifact: Stores the FI request data as an artifact named
fi_requestatfi_request.json.
To trigger any of the workflows:
- Navigate to the "Actions" tab in the repository.
- Select the desired workflow.
- Click "Run workflow".
- Provide the required inputs and execute the workflow.
This setup ensures an automated and seamless process for handling Consent API and FI requests using GitHub Actions.