본문으로 건너뛰기

시작하기

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 confidential 클라이언트).

설치
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 페더레이션 Authority용 서비스 SDK.

설치
composer require identvia/agentpass-php
GitHub에서 보기

안내가 필요하신가요? Quickstart 또는 PHP SDK 가이드로 시작하세요. 플랫폼별 팁은 개발자 콘솔에서 앱을 만들 때도 표시됩니다.