What Is an Identity Provider (IdP)? Trust Checks for SSO
Understand IdP and RP roles, OIDC token checks, account linking, and access revocation in a practical review flow.
What Is an Identity Provider (IdP)? Trust Checks for SSO
An identity provider (IdP) authenticates a user and sends the result through a federation protocol so another service, the relying party (RP), can verify it. In OpenID Connect (OIDC), the IdP is called an OpenID Provider (OP). A successful IdP login does not automatically decide the user's app permissions at the RP.
IdP and RP roles
The user authenticates at the IdP, which sends a verifiable assertion about the user and authentication event. The RP checks the trusted issuer and signature, then applies its own account and role policy. An OIDC ID Token is a JWT about authentication; an OAuth 2.0 Access Token grants access to a specified API. They serve different purposes.
| Party | Responsibility |
|---|---|
| IdP / OpenID Provider | Authenticate and send permitted attributes |
| RP / OIDC Client | Validate the response and decide sessions and app access |
See the trust boundary in the OIDC authorization code flow
For a work-app sign-in, the RP sends the browser to its registered IdP authorization endpoint with the openid scope, its registered client_id and redirect_uri, and a random state. After the user authenticates, the IdP returns an authorization code to the RP address. The RP checks state and exchanges the code at the token endpoint for an ID Token and, when needed, an Access Token.
The RP uses the result only after validating the signature, iss, aud, expiry, and nonce if it sent one. An ID Token reports the authentication result; an Access Token authorizes API access. The RP still decides application roles and permissions under its own policy.
Agree on five items before integration
Verify the trusted issuer, the source of its metadata, and the signing-key rotation process.
Separate the RP's client ID, registered redirect URIs, and allowed flows by environment.
Email and names can change. OIDC `sub` is unique within an issuer and is never reassigned, so `iss` plus `sub` is generally a safer account-linking key. Do not treat the same `sub` from different issuers as the same user.
Request only the attributes needed for account linking and their stated purpose. If using a separate identity API such as UserInfo, limit the token, audience, and data scope.
Decide how IdP suspension, transfer, or termination updates local RP accounts, sessions, and permissions. SSO alone may not deactivate an existing RP account.
Check an OIDC response
The RP should check that iss matches its registered IdP, the signature validates with a trusted key, aud includes that RP's client ID, and exp has not passed. Apply other checks required by the OIDC flow in use. Decoding a JWT to read its claims is not signature validation. If validation fails, do not disable checks: inspect issuer, audience, expiry, key ID, configuration changes, and key rotation, then restore the intended configuration.
For example, when employees sign in to a collaboration tool through a company IdP, the tool validates the response and then checks its own membership and roles. Do not grant admin access from an email claim alone; verify that offboarding updates app permissions and sessions too. NIST SP 800-63C-4 is US digital identity guidance; OpenID Connect Core defines OIDC behavior. Treat this checklist as a starting point and verify requirements against the protocol, product, and threat model in use.
References
[NIST SP 800-63C-4: Federation and Assertions](https://pages.nist.gov/800-63-4/sp800-63c.html)
[NIST SP 800-63C-4: Common Federation Requirements](https://pages.nist.gov/800-63-4/sp800-63c/Federation/)
[OpenID Connect Core 1.0, Errata Set 2](https://openid.net/specs/openid-connect-core-1_0.html)