İçeriğe geç

Başlarken

SDK’ler ve kitaplıklar

Sign in with Identvia ve AgentPass için resmi istemciler. Her paket Identvia organizasyonu altında GitHub’da açık kaynaktır.

Yapay zekâ ajanınız için istemi kopyalayın

Kodlama ajanı mı kullanıyorsunuz? Bu istem onu bu belgelere yönlendirir ve uyması gereken kuralları listeler. Yazdıklarını diğer kodlar gibi inceleyin.

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

Tarayıcı ve Node OIDC istemcisi, isteğe bağlı React yardımcılarıyla.

Kur
npm install @identvia/js
GitHub’da gör

identvia-react-native

React Native / Expo

Expo ve React Native uygulamaları için yerel oturum açma.

Kur
npx expo install @identvia/react-native expo-web-browser expo-secure-store expo-crypto
GitHub’da gör

identvia-flutter

Flutter

iOS ve Android’de Sign in with Identvia için Flutter paketi.

Kur
flutter pub add identvia
GitHub’da gör

identvia-swift

Swift / iOS

iOS ve macOS için Swift Package Manager istemcisi.

Kur
.package(url: "https://github.com/Identvia/identvia-swift", from: "0.1.0")
GitHub’da gör

identvia-android

Android / Kotlin

Custom Tabs ve App Links destekli Kotlin istemcisi.

Kur
implementation("com.identvia:identvia-android:0.1.0")
GitHub’da gör

identvia-dotnet

.NET

Identvia için ASP.NET Core kimlik doğrulama işleyicisi.

Kur
dotnet add package Identvia.AspNetCore
GitHub’da gör

identvia-wordpress

WordPress

WordPress’te Sign in with Identvia (PKCE gizli istemci).

Kur
Copy to wp-content/plugins/identvia-login and activate
GitHub’da gör

identvia-php

PHP

Düz PHP 8.1+ OIDC SDK; zip bu sunucudan indirilebilir.

Kur
composer require identvia/identvia-php
GitHub’da gör

agentpass-php

PHP (AgentPass)

AgentPass v0.1 federasyon yetkilisi için servis SDK’sı.

Kur
composer require identvia/agentpass-php
GitHub’da gör

Adım adım rehber mi arıyorsunuz? Quickstart veya PHP SDK kılavuzuyla başlayın. Platforma özel ipuçları geliştirici konsolunda uygulama oluştururken de görünür.