सामग्री पर जाएँ

शुरू करें

SDK और लाइब्रेरी

Sign in with Identvia और AgentPass के लिए आधिकारिक क्लाइंट। प्रत्येक पैकेज Identvia संगठन के अंतर्गत GitHub पर ओपन सोर्स है।

अपने AI एजेंट के लिए प्रॉम्प्ट कॉपी करें

कोडिंग एजेंट इस्तेमाल कर रहे हैं? यह प्रॉम्प्ट उसे इन दस्तावेज़ों की ओर भेजता है और वे नियम बताता है जिनका पालन उसे करना है। वह जो लिखे, उसकी समीक्षा किसी भी दूसरे कोड की तरह करें।

You are helping me add "Sign in with Identvia" to my app (PHP). Identvia is an OpenID Connect provider.

Read these first (they are plain Markdown and are the source of truth; prefer them over anything you remember):
- https://id.identvia.com/developers/docs/quickstart.md
- https://id.identvia.com/developers/docs/oidc.md
- https://id.identvia.com/developers/docs/security.md
- Discovery: https://id.identvia.com/.well-known/openid-configuration

Stack: plain PHP 8.1+ (no framework). Use the official SDK identvia/identvia-php (composer require identvia/identvia-php, or the zip with vendor/ from https://id.identvia.com/developers/docs/php for hosts without Composer). Create identvia.php (config), login.php (redirectToSignIn), callback.php (handleCallback, then session_regenerate_id(true) and store sub) and logout.php. Read secrets from environment variables or a config file outside the web root.

Requirements:
1. Authorization code flow with PKCE (S256 only), a random state and a nonce per sign-in. No implicit flow.
2. Validate the ID token: RS256 signature from the JWKS, iss = https://id.identvia.com, aud contains my client_id, exp/iat, and the nonce.
3. Identify users by sub (it is pairwise: different for every app). Treat email as optional, because the person may choose not to share it.
4. Redirect URIs must match exactly. Keep the client secret and refresh tokens server-side; never log tokens.
5. Ask only for the scopes I need (openid, plus email/profile if used). Handle the user canceling (error=access_denied) gracefully.

Optional, only if I ask for AI-agent access later:
- AgentPass (agents acting for a user with single-use, holder-bound passes): https://id.identvia.com/developers/docs/agentpass.md
- MCP server for agent clients: https://id.identvia.com/developers/docs/mcp.md
- Token exchange, rich authorization requests and CIBA: https://id.identvia.com/developers/docs/delegation.md

Before writing code, tell me which files you will add or change. Don't invent endpoints or options that aren't in the docs; if something is unclear, ask me.

identvia-js

JavaScript / TypeScript

ब्राउज़र और Node OIDC क्लाइंट, वैकल्पिक React हेल्पर सहित।

इंस्टॉल
npm install @identvia/js
GitHub पर देखें

identvia-react-native

React Native / Expo

Expo और React Native ऐप्स के लिए नेटिव साइन-इन।

इंस्टॉल
npx expo install @identvia/react-native expo-web-browser expo-secure-store expo-crypto
GitHub पर देखें

identvia-flutter

Flutter

iOS और Android पर Sign in with Identvia के लिए Flutter पैकेज।

इंस्टॉल
flutter pub add identvia
GitHub पर देखें

identvia-swift

Swift / iOS

iOS और macOS के लिए Swift Package Manager क्लाइंट।

इंस्टॉल
.package(url: "https://github.com/Identvia/identvia-swift", from: "0.1.0")
GitHub पर देखें

identvia-android

Android / Kotlin

Custom Tabs और App Links वाला Kotlin क्लाइंट।

इंस्टॉल
implementation("com.identvia:identvia-android:0.1.0")
GitHub पर देखें

identvia-dotnet

.NET

Identvia के लिए ASP.NET Core प्रमाणीकरण हैंडलर।

इंस्टॉल
dotnet add package Identvia.AspNetCore
GitHub पर देखें

identvia-wordpress

WordPress

WordPress पर Sign in with Identvia (PKCE गोपनीय क्लाइंट)।

इंस्टॉल
Copy to wp-content/plugins/identvia-login and activate
GitHub पर देखें

identvia-php

PHP

सादा PHP 8.1+ OIDC SDK; इस सर्वर से zip डाउनलोड उपलब्ध।

इंस्टॉल
composer require identvia/identvia-php
GitHub पर देखें

agentpass-php

PHP (AgentPass)

AgentPass v0.1 फ़ेडरेटेड अथॉरिटी के लिए सेवा SDK।

इंस्टॉल
composer require identvia/agentpass-php
GitHub पर देखें

गाइड चाहिए? Quickstart या PHP SDK गाइड से शुरू करें। प्लेटफ़ॉर्म-विशिष्ट सुझाव डेवलपर कंसोल में ऐप बनाते समय भी दिखते हैं।