Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SmartAadhaar - ServiceNow Integration Script Include
A production-ready ServiceNow Script Include for Aadhaar verification and eKYC, utilizing a Connection & Credential Alias for secure, secret-free integration.
🎯 Key Features
This script provides a complete flow for secure Aadhaar integration:
sendOtp(),verifyOtp()verifyDemographic()getDocument()checkStatus()🔒 Security & Compliance Built-in
aadhaar_api).XXXX-XXXX-1234).🛠️ Setup & Configuration
Create Connection & Credential Alias:
aadhaar_api(or your chosen alias).https://api.provider.tld).Configure Endpoints (In Script): Map your provider's API paths inside the Script Include:
Set Timeouts & Retries: Configure
timeoutMs(default 8000) andretries(default 2) to manage reliability.🚀 Usage Examples
Use from a Background Script or any server-side logic:
API Reference
All methods return a normalized envelope:
{ ok:Boolean, code:Number, message:String, data:Object }sendOtp(p)uid,purpose,consentverifyOtp(p)uid,otp,session_idverifyDemographic(p)uid,name,dob,gender