mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 01:48:12 +00:00
feat: ( fayda ) add the fayda variables
This commit is contained in:
@@ -88,9 +88,19 @@ IAM_ENABLED=false
|
|||||||
IAM_API_URL=https://iam.tria-plc.com/api
|
IAM_API_URL=https://iam.tria-plc.com/api
|
||||||
IAM_API_KEY=
|
IAM_API_KEY=
|
||||||
|
|
||||||
# Verifayda 2.0 Configuration (Ethiopian National ID Verification)
|
# --- VeriFayda 2.0 (eSignet) OIDC integration ---
|
||||||
VERIFAYDA_ENABLED=false
|
FAYDA_ENABLED=true
|
||||||
VERIFAYDA_API_URL=https://api.verifayda.gov.et/v2
|
FAYDA_CLIENT_ID=
|
||||||
VERIFAYDA_API_KEY=
|
FAYDA_AUTHORIZATION_ENDPOINT=
|
||||||
|
FAYDA_TOKEN_ENDPOINT=
|
||||||
|
FAYDA_USERINFO_ENDPOINT=
|
||||||
|
# Base64 of the RSA private JWK (JSON). Secret — never commit a real value.
|
||||||
|
FAYDA_PRIVATE_KEY_BASE64=
|
||||||
|
FAYDA_REDIRECT_URI=
|
||||||
|
# Optional (defaults shown)
|
||||||
|
FAYDA_SCOPE=openid profile email
|
||||||
|
FAYDA_ACR_VALUES=mosip:idp:acr:generated-code
|
||||||
|
FAYDA_CLAIMS_LOCALES=en am
|
||||||
|
FAYDA_SESSION_TTL_MINUTES=10
|
||||||
|
|
||||||
GITHUB_PACKAGE_TOKEN=
|
GITHUB_PACKAGE_TOKEN=
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
/*
|
|
||||||
Warnings:
|
|
||||||
|
|
||||||
- A unique constraint covering the columns `[authCode]` on the table `FaydaVerificationSession` will be added. If there are existing duplicate values, this will fail.
|
|
||||||
|
|
||||||
*/
|
|
||||||
-- AlterTable
|
|
||||||
ALTER TABLE "FaydaVerificationSession" ADD COLUMN "authCode" TEXT,
|
|
||||||
ADD COLUMN "platform" TEXT NOT NULL DEFAULT 'WEB';
|
|
||||||
|
|
||||||
-- CreateIndex
|
|
||||||
CREATE UNIQUE INDEX "FaydaVerificationSession_authCode_key" ON "FaydaVerificationSession"("authCode");
|
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE "FaydaVerificationSession" ADD COLUMN "authCode" TEXT,
|
||||||
|
ADD COLUMN "platform" TEXT NOT NULL DEFAULT 'WEB';
|
||||||
@@ -1266,6 +1266,7 @@ model FaydaVerificationSession {
|
|||||||
status String @default("PENDING")
|
status String @default("PENDING")
|
||||||
errorCode String?
|
errorCode String?
|
||||||
errorDescription String?
|
errorDescription String?
|
||||||
|
authCode String?
|
||||||
createdAt DateTime @default(now())
|
createdAt DateTime @default(now())
|
||||||
expiresAt DateTime
|
expiresAt DateTime
|
||||||
completedAt DateTime?
|
completedAt DateTime?
|
||||||
|
|||||||
Reference in New Issue
Block a user