Skip to content

Developer quickstart

Register an app in the developer console and add Sign in with Identvia to a PHP site with the identvia-php SDK.

  1. Register your app. Open the developer console, press New app, choose Server-side (confidential) and add your callback URL as a redirect URI. Copy the client secret straight away: it's shown once.
  2. Install the SDK. composer require identvia/identvia-php, or download the zip with vendor/ included if your host has no SSH.
  3. Start sign-in with $identvia->redirectToSignIn() and handle the callback with $identvia->handleCallback(). The SDK checks the state, exchanges the code with PKCE, and verifies the ID token's signature, issuer, audience, expiry and nonce.
  4. Use sub() as the user's ID, not their email.

Your first environment is Development and allows http://localhost. Add a Production environment with your real https:// callback when you go live.

The full walkthrough is in the Quickstart and the PHP SDK guide. If you use another language, any certified OpenID Connect library works: see OpenID Connect.

Was this article helpful?