# Choosing the Right OIDC Application Type

When you add an OIDC application, you choose its **Client Type**. The right choice depends on whether the application can keep a secret.

<table id="bkmrk-client-type-choose-i"><thead><tr><th>Client Type</th><th>Choose it for</th><th>How it proves who it is</th></tr></thead><tbody><tr><td>**Web / Server Application (Confidential)**</td><td>Applications with a server behind them: most web apps, SaaS products, WordPress and other CMS plugins, server-side frameworks.</td><td>A **client secret**, kept on the server and sent with HTTP Basic authentication when it collects tokens.</td></tr><tr><td>**Public Application (PKCE)**</td><td>Apps that run entirely on someone's device: mobile apps, desktop apps, and single-page browser apps with no server of their own.</td><td>**PKCE**: a one-time proof created for each sign-in, using SHA-256 (S256). There's no secret, because anything inside the app could be extracted.</td></tr></tbody></table>

## Quick test

- Does the application's setup screen ask for a **client secret**? Choose **Confidential**.
- Does it say "PKCE", "public client", or have no secret field? Choose **Public**.
- Not sure, and it's a normal website? Choose **Confidential**.

## What both types share

- Both use the OAuth 2.0 **Authorization Code** flow. People sign in on ID Everywhere's page, not inside the app.
- Both support PKCE. Confidential apps can use it too, and it's recommended.
- ID tokens are signed with **RS256**. That's separate from PKCE's S256.

<p class="callout warning">Never put a confidential client secret in a mobile app, desktop app or browser JavaScript. If an app needs to run on devices, register it as Public.</p>