Relying Party
A relying party is an application or service that depends on an external authority to verify who a user is before granting access to a protected resource. Rather than checking credentials itself, it trusts and consumes assertions or tokens issued by that authority. In this way it relies on someone else's identity verification to make its own access decisions.
A Relying Party (RP) is an entity that controls access to a protected resource and depends on the validity of security tokens or assertions issued by a trusted authority (such as an identity provider or, in some standards, a credential service provider) to authenticate the entities requesting access. In federation deployments the RP typically consumes tokens or assertions to establish an authenticated session; note that the term is used with slightly different framing across standards. In NIST SP 800-63-3 the RP relies on a subscriber's authenticated identity and the associated assertions from an identity provider, and is described as depending on the validity of the digital signature or authentication process. The RP performs authorization for its own resources based on the authenticated identity, but the underlying identification and authentication are typically delegated to the trusted authority. Exact responsibilities, token validation, assertion verification, trust establishment, and session handling, depend on the applicable protocol and profile (for example OIDC, where the RP is the OAuth 2.0 client, or SAML 2.0, where the analogous role is the service provider). RPs are noted as valuable targets for attackers seeking to impersonate valid subscribers or obtain information about them, per NIST guidance.
Why it matters
The relying party is where delegated identity actually turns into access. Because the RP does not verify credentials itself but instead trusts assertions or tokens issued by an external authority, the security of everything it protects hinges on how carefully it validates what it receives. A relying party that accepts a poorly validated token, ignores signature checking, or fails to confirm the intended audience effectively outsources its front door to whoever can forge or replay an assertion. In federated architectures this concentration of trust is deliberate and efficient, but it also means the RP inherits the consequences of any weakness in the trust relationship.
Relying parties are, per NIST guidance, a valuable target for attackers seeking to impersonate valid subscribers or obtain information about them. This makes correct token and assertion handling at the RP a first-order security concern rather than an integration detail. The RP must establish and maintain a well-defined trust relationship with its identity provider or credential service provider, and it must treat token validation, checking signatures, issuer, audience, and expiry, depending on the applicable protocol and profile, as a required control rather than an optional convenience.
Understanding the RP role also clarifies a division of responsibility that is easy to blur. Identification and authentication are typically delegated to the trusted authority, while the RP performs authorization for its own resources based on the authenticated identity it is handed. Teams that misplace this boundary, expecting the identity provider to enforce fine-grained access, or expecting the RP to re-authenticate users it should trust, tend to build systems that are either over-permissive or unnecessarily brittle.
Who it's relevant to
Inside RP
Common questions
Answers to the questions practitioners most commonly ask about RP.
