Firefox Tomorrow

web api instance property

RTCIdentityAssertion: idp property

View on MDN ↗

Limited availability

The idp property of the RTCIdentityAssertion interface indicates the domain name of the identity provider (IdP) that validated the identity assertion (a verified claim of the remote peer’s identity).

Value

A string containing the domain name of the identity provider that validated this identity.

Examples

Displaying the identity provider domain

In this example, the peerIdentity promise resolves with an RTCIdentityAssertion whose idp property is logged to the console.

const pc = new RTCPeerConnection();

// …

async function getIdentityProvider() {
  try {
    const identity = await pc.peerIdentity;
    console.log(`Identity provider: ${identity.idp}`);
  } catch (err) {
    console.error("Failed to get peer identity:", err);
  }
}

getIdentityProvider();

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also