Developer quickstart
Register an app in the developer console and add Sign in with Identvia to a PHP site with the identvia-php SDK.
Updated
- 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.
- Install the SDK.
composer require identvia/identvia-php, or download the zip withvendor/included if your host has no SSH. - 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. - 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.