# Troubleshooting OIDC Connections

Use this checklist when you're **setting up** an OIDC application and it won't connect. For errors people see when signing in to an app that already works, see [Troubleshooting OIDC Application Sign-In](https://help.ideverywhere.com/books/troubleshooting/page/troubleshooting-oidc-application-sign-in).

## Setup checklist

<table id="bkmrk-check-correct-settin"><thead><tr><th>Check</th><th>Correct setting</th></tr></thead><tbody><tr><td>Discovery / Issuer</td><td>`https://app.ideverywhere.com/.well-known/openid-configuration`, or issuer `https://app.ideverywhere.com` with no trailing slash.</td></tr><tr><td>Redirect URL</td><td>Registered in ID Everywhere exactly as the app sends it: same `https`, host, port, path and trailing slash.</td></tr><tr><td>Client type</td><td>Confidential for server apps with a secret; Public (PKCE) for mobile, desktop and browser-only apps.</td></tr><tr><td>Client authentication</td><td>Secret sent with **HTTP Basic** (`client_secret_basic`). If the app offers "client\_secret\_post" or "Send in body", change it to Basic.</td></tr><tr><td>Grant / response type</td><td>**Authorization Code** (`response_type=code`). Not Implicit, Hybrid or Password.</td></tr><tr><td>Scopes</td><td>`openid` plus `profile` and `email` as needed. Every scope the app requests must be ticked on the OIDC app in ID Everywhere, or the sign-in fails with `invalid_scope`.</td></tr><tr><td>PKCE</td><td>S256 if the app supports it. Plain PKCE isn't accepted.</td></tr><tr><td>Token signing</td><td>RS256. Keys come from the JWKS URL in discovery.</td></tr><tr><td>Refresh tokens</td><td>Turn off "offline access" or refresh token options. They aren't issued.</td></tr></tbody></table>

## Common setup problems

<table id="bkmrk-symptom-fix-%22redirec"><thead><tr><th>Symptom</th><th>Fix</th></tr></thead><tbody><tr><td>"Redirect URI mismatch" or `invalid_redirect_uri`</td><td>Copy the callback URL from the app's error or settings and paste it into the OIDC app's redirect URLs exactly.</td></tr><tr><td>`invalid_client` right after setup</td><td>The secret is wrong, or the app sends it in the request body. Switch to Basic auth, or regenerate the secret and paste it carefully.</td></tr><tr><td>`unsupported_grant_type`</td><td>The app is asking for something other than the authorization code, such as a refresh token or password grant. Change its grant type.</td></tr><tr><td>"Invalid signature" or "unable to verify token"</td><td>The app must use RS256 and fetch keys from the JWKS URL. Don't paste a fixed key; ID Everywhere may rotate keys.</td></tr><tr><td>Sign-in works, then the app says the token expired</td><td>The app's server clock is wrong. ID tokens are short-lived, so fix the time on the server.</td></tr><tr><td>Signed in, but no email or name in the app</td><td>Add the `email` and `profile` scopes, and map the app's fields to the `email` and `name` claims.</td></tr><tr><td>The app signs in the wrong account or makes duplicates</td><td>Have the app link accounts by `sub`, not by email. Emails can change.</td></tr></tbody></table>

## Narrow it down

1. Test with Postman. See [Testing ID Everywhere OIDC with Postman](https://help.ideverywhere.com/books/applications-single-sign-on/page/testing-id-everywhere-oidc-with-postman).
2. Check the Audit Log for `oidc.*` events at the time of the attempt.
3. Check the app's own logs; most show the exact OIDC error.