Join our Newsletter — 33% off our NHI Course
Home› Guides› Identity provider (IdP) and SSO platform integration security…
Guide Identity & Access Management (IAM)

Identity provider (IdP) and SSO platform integration security guide: service accounts, tokens and scopes for IdP, SIEM, ticketing and API connections

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 14 November 2026 16 min read
On this page

The identity provider decides who can sign in to everything, so every service account, API token and signing key that connects to it is a path to changing that decision. Around a typical IdP tenant sit a dozen or more machine connections: provisioning tokens into SaaS applications, a directory sync agent on premises, an HR feed, an identity governance or privileged access platform calling the admin API, a SIEM pulling the system log, a ticketing system that resets passwords, and security signal streams to and from other services. Each one was usually set up by one administrator, with whatever scope made the wizard succeed. This vendor-neutral guide goes connection by connection: what each needs, what it is often given, how to scope, constrain, rotate and monitor its credential, and how to retire it. It is for identity engineers and IdP administrators. Per-application SAML and OpenID Connect settings are in the SSO Integration Checklist, protocol detail for provisioning is in the SCIM Provisioning Guide, and tenant hardening is in the Identity Provider and SSO Security Guide; this page does not repeat them.

Key takeaways

  • Admin API tokens are tier 0 credentials. A token that can create users, reset MFA or edit application assignments is equivalent to a super administrator who never signs in and never sees a prompt, so it needs the same protection.
  • Inbound trust is the most dangerous change. Adding a federated identity provider or a new signing certificate lets someone mint sign-ins for your users; treat every trust change as a security event.
  • Prefer asymmetric client authentication. RFC 9700 recommends mutual TLS or private_key_jwt over shared secrets, and sender-constrained tokens where the target supports them.
  • Read and write connections need separate identities. A SIEM collector that only reads logs should never share a credential with automation that changes accounts.
  • The IdP holds connector credentials for downstream apps. Provisioning tokens stored in the IdP reach every connected application, so their scope and expiry matter as much as the IdP's own admin roles.

The integration map

Start with a register of every connection, in both directions. Inbound connections are other systems calling the IdP; outbound connections are the IdP calling something else with a credential it stores. Both are non-human identities, and both belong in your NHI inventory with an owner, a purpose, a credential type, a scope and a review date.

ConnectionDirectionTypical credentialWhat it can do if over-scopedTarget scope
Outbound provisioning to SaaS appsIdP to appBearer token or OAuth client stored in the IdPCreate, change or delete accounts and group memberships in the app, sometimes app admin rightsProvisioning-only role in the app, no interactive sign-in
HR or source-of-truth feedHR system to IdP, or IdP pullingAPI user or OAuth clientCreate identities, change managers and departments that drive access rulesWrite limited to profile attributes; no group or admin assignment
Directory sync agentOn-premises host to IdPAgent registration token, directory bind accountPush password hashes or attributes, write back to the directoryDedicated host, read-only bind where write-back is not used
Governance, privileged access or automationPlatform to IdP admin APIAdmin API token or OAuth client credentialsAnything the admin role allows, including MFA reset and app assignmentCustom admin role with only the operations in use
SIEM and log exportSIEM pulling, or IdP pushing to a streamRead-only API token, OAuth client, or stream endpoint secretIf admin-scoped: full tenant control; if read-only: user, app and sign-in metadataLog read only
Ticketing and access request workflowsITSM to IdPAdmin API token or integration userPassword and MFA resets, group changes approved by a ticketReset and group operations on non-privileged populations only
Security signal streamsBothOAuth client credentials, signed Security Event TokensSpoofed signals that revoke sessions or suppress themOne stream per receiver, audience bound
Inbound federation and external IdPsExternal IdP to your IdPSigning certificate and metadataSign in as any user whose linking attribute it controlsNamed domains, no automatic account linking

Platform names, role names and setting names differ by product; confirm them in your IdP's documentation. The categories above are common to most cloud identity providers.

Admin API tokens and automation clients

The admin API is where most integration risk concentrates. Governance tools, privileged access platforms, scripts, infrastructure as code pipelines and ticketing systems all call it.

  • Use OAuth clients, not personal tokens: many IdPs still offer API tokens that inherit the permissions of the administrator who created them and stop working only when that person is deactivated. Prefer an OAuth service application using the client credentials grant with explicit scopes, so the credential is tied to a registered client rather than a person.
  • Authenticate the client with a key, not a secret: RFC 9700 (BCP 240) recommends asymmetric client authentication, naming mutual TLS (RFC 8705) and private_key_jwt (RFC 7521 and RFC 7523). With private_key_jwt the client signs a short JWT whose iss and sub are its client ID and whose aud is the authorisation server, so no reusable secret crosses the wire. Keep the private key in a hardware module or a secrets manager. See the JWT Client Authentication (private_key_jwt) Guide.
  • Scope to operations, not to roles: RFC 9700 asks for tokens limited to the minimum privileges needed. A ticketing integration that resets passwords for staff needs user read and reset operations, not application or policy management. Where the IdP supports custom admin roles, build one per integration and restrict it to a resource set (for example, a group of standard users) so it cannot touch administrators.
  • Keep privileged populations out of reach: exclude administrator, break-glass and service accounts from any group that an automation identity can reset or modify. A reset flow that can reset an administrator's MFA is a privilege escalation path that bypasses every control on the administrator's own sign-in.
  • Constrain where it runs from: bind each admin client to the network ranges or workload identity of the system that uses it, and alert on use from anywhere else. Where the target supports sender-constrained tokens (mutual TLS certificate binding or DPoP), use them so a copied token fails on another host.
  • Short lifetimes, no refresh where not needed: client credentials flows do not need refresh tokens. Keep access tokens short and let the client request a new one.

Provisioning and directory connectors

Provisioning runs in two directions and each has its own credential problem.

  • Outbound tokens stored in the IdP: when the IdP provisions into a SaaS application, it holds that application's bearer token or OAuth client. RFC 7644 relies on TLS and on a token framework such as OAuth 2.0 for bearer tokens, and advises against basic authentication. In the target application, create a dedicated provisioning identity with no interactive sign-in, the narrowest role that allows user and group writes, and, where offered, an expiry. Record each token's expiry in the integration register; provisioning that silently stops when a token expires is a common cause of orphaned accounts.
  • Inbound HR feeds: the HR system drives joiner, mover and leaver logic. A writer that can change department or manager attributes can move a user into a group that grants sensitive access through rules. Limit the feed to the attributes it owns, and put attribute-driven group rules that grant privileged access under change control.
  • Directory sync agents: an on-premises agent that synchronises users and passwords into the IdP, or writes back to the directory, is a hybrid identity bridge. MITRE ATT&CK lists abuse of this bridge as T1556.007 Hybrid Identity. Run agents on dedicated, hardened hosts managed as tier 0, use a read-only directory bind where write-back is not required, and alert on new agent registrations.
  • Deprovisioning reach: confirm that disabling a user in the IdP deactivates them in each connected app, and test it. Provisioning is covered in depth in the SCIM Provisioning Guide.

SIEM, log export and security signals

  • Read-only log credentials: the SIEM collector needs to read the system log or audit events and nothing else. A collector configured with a super administrator token because the read-only role did not exist at setup time is common, and turns the SIEM into a path to tenant control. Use a log-read scope or role, and put the SIEM host in the same protection tier as the credential it holds. See the SIEM Log Source Onboarding Checklist.
  • Push streams and webhooks: where the IdP pushes events to an endpoint, authenticate the receiver, verify signatures on every delivery and rotate the shared secret or key. Alert when the stream is paused or its destination changed, since redirecting the log stream blinds detection.
  • Shared Signals Framework: the OpenID Shared Signals Framework 1.0 (published 29 August 2025 as a Standards Track specification, checked November 2026) defines transmitters, receivers and event streams carrying Security Event Tokens (RFC 8417), with push (RFC 8935) or poll (RFC 8936) delivery. It does not define its own authentication: the transmitter advertises authorisation schemes, commonly OAuth client credentials. The specification requires stream management to be authorised so each receiver can access only its own streams and audience values, and warns that sharing an audience value across receivers can disclose events to the wrong party. Give each receiver its own client and stream. See the Shared Signals Framework Guide and CAEP and Continuous Access Evaluation.
  • Inline hooks and custom extensions: some IdPs call out to your code during sign-in or token issuance to enrich claims or make decisions. That endpoint can change the claims in tokens for every application, so treat its hosting, code deployment and credential as part of the IdP's trust boundary.

Ticketing and access request integrations

An ITSM integration turns an approved ticket into an IdP change: a group membership, an application assignment, a password reset or an MFA reset. The ticket approval becomes the authorisation, so the integration inherits every weakness of the ticket workflow.

  • Separate fulfilment from reset: group and app assignment fulfilment and credential reset are different risks. Give them separate integration identities with separate admin roles.
  • No resets for privileged accounts via automation: route resets for administrators and service owners to a manual process with out-of-band identity verification.
  • Bind the change to the ticket: log the ticket ID in the IdP change where the API allows a reason field, so investigators can match every automated change to an approval.
  • Protect the ITSM side: the integration credential lives in the ticketing platform, so its admin roles and integration store are part of the IdP's risk. See Securing the ITSM platform itself.

Federation trusts and signing keys

Inbound federation, where another identity provider is trusted to authenticate some of your users, is the most powerful integration of all. The joint advisory on Scattered Spider (CISA AA23-320A) reports actors adding a federated identity provider to a victim's SSO tenant and activating automatic account linking, which let them sign in to accounts by matching an attribute value they chose. ATT&CK tracks this as T1484.002 Trust Modification, and forged assertions as T1606.002 SAML Tokens.

  • Restrict who can add trusts: only a small, named group, with a second approver, should be able to add an external IdP, routing rule or signing certificate.
  • Disable automatic linking: require that federated users match pre-existing accounts by an immutable identifier, scoped to named domains.
  • Audience and key rules: NIST SP 800-63C-4 restricts assertions at FAL2 and FAL3 to a single relying party, and requires symmetric keys to be unique to each pair of participants and keys to be rotated by the process in the trust agreement. Apply the same discipline to your own trusts: one certificate per relationship, with a recorded rotation date.
  • Watch the signing certificate: alert on any new or changed token signing certificate on the tenant or on any application. See the Golden SAML and Federation Trust Abuse Defence Guide.

How to implement: a phased review

  1. Inventory (weeks 1 to 2): export every API token, OAuth service application, provisioning connector, sync agent, log stream, hook and federation trust. For each record the creator, owner, scope, credential type, last use and expiry. Tokens tied to departed administrators go to the top of the list.
  2. Classify: mark each as read-only, write to non-privileged users, or tier 0 (can touch administrators, policies, apps or trusts).
  3. Replace tier 0 personal tokens first: create an OAuth client per integration with private_key_jwt or mutual TLS and a custom role, run it in parallel with the old token, confirm the integration works and the audit log shows the new client, then revoke the old token.
  4. Split shared credentials: where one token serves several systems, issue one per system. Test each in a non-production tenant first where you have one.
  5. Constrain and alert: add network or workload binding and build the detections below.
  6. Rollback plan: keep the old credential disabled rather than deleted for an agreed window where the IdP allows it, so you can restore an integration that breaks, then delete it at the end of the window.
  7. Retire: remove connectors for decommissioned apps and revoke their tokens on both sides. Repeat the review quarterly and on every IdP administrator departure. Lifecycle detail is in the Identity provider (IdP) and SSO platform rollout playbook.

Choosing a credential type

OptionUse whenTrade-off
OAuth client with private_key_jwtDefault for server-side automation calling the admin APIKey storage and rotation to manage; no secret on the wire
OAuth client with mutual TLS and certificate-bound tokensThe IdP supports RFC 8705 and you run an internal PKIStrongest binding; certificate lifecycle and proxy handling to manage
OAuth client with client secretThe platform offers nothing betterSecret can be copied; store in a secrets manager and rotate on a schedule
Personal or administrator-created API tokenOnly where no OAuth option existsInherits a person's rights and lifecycle; replace when possible
Workload identity federationThe calling platform can present a signed workload token the IdP trustsNo stored secret; trust configuration becomes the control to protect

Small organisations with three or four integrations can manage this in a spreadsheet register and a quarterly review. Large organisations with dozens of connectors and several IdP tenants should feed the register from the IdP APIs into their NHI inventory and governance tooling, and reconcile it automatically. See NHI Inventory Reconciliation.

Detection and measurement

Monitor the IdP audit log for these events and send them to the SIEM with high priority:

  • API token or OAuth client created, or a new secret, key or certificate added to an existing client (ATT&CK T1098.001 Additional Cloud Credentials).
  • Admin role granted to a service application or integration user (T1098.003 Additional Cloud Roles).
  • External IdP, routing rule or signing certificate added or changed (T1484.002).
  • Integration credential used from a new network, ASN or workload, or at an unusual volume (T1550.001 Application Access Token).
  • Log stream or hook paused, deleted or pointed elsewhere.
  • Directory sync agent registered or connector configuration changed.
MetricTarget
Integrations in the register with owner, scope and expiry100%
Admin API integrations using personal or administrator-created tokensZero, or each with a dated exception
Integrations using asymmetric client authenticationRising each quarter
Integration credentials unused for 90 days and not yet revokedZero
Trust and signing certificate changes with a matching approved change100%

Operational health metrics for the tenant as a whole are in the Identity provider (IdP) and SSO platform health check.

Framework mapping

Control areaNIST SP 800-53 Rev. 5NIST CSF 2.0OWASP NHI Top 10 2025
Integration register and ownershipCM-8, AC-2ID.AM-08, PR.AA-01NHI1:2025 Improper Offboarding
Scoped admin roles per integrationAC-6PR.AA-05NHI5:2025 Overprivileged NHI
Asymmetric client authentication and rotationIA-5, IA-9, SC-12PR.AA-01NHI4:2025 Insecure Authentication, NHI7:2025 Long-Lived Secrets
One credential per integrationIA-9PR.AA-05NHI9:2025 NHI Reuse
Audit of integration changes and useAU-6, SI-4DE.CM-03NHI10:2025 Human Use of NHI
Third-party connectors and federation partnersSA-9GV.SC-07NHI3:2025 Vulnerable Third-Party NHI

Common failure patterns

  • Super administrator token in the SIEM: the log collector was set up with the only token type available at the time and never revisited.
  • Tokens owned by people who left: an administrator-created token keeps working until someone notices, or stops working the day the person is deactivated and breaks provisioning.
  • Integration credentials stored outside a vault: in the Okta Support System Breach 2023, a service account's credentials saved in an employee's personal browser profile gave an attacker access to support files containing session tokens.
  • Test and legacy applications with production rights: in the Microsoft Midnight Blizzard Breach 2024, a legacy test OAuth application with elevated access was used to create further applications and grant mailbox access.
  • Automatic account linking on a new federation: trusting an external IdP without restricting domains and identifiers lets whoever controls it sign in as your users.
  • Resets that reach administrators: a ticket-driven reset integration scoped to all users, including privileged ones.

Practitioner checklist

  • Build an integration register covering inbound and outbound connections, with owner, scope, credential type, last use and expiry.
  • Replace administrator-created API tokens with OAuth clients using private_key_jwt or mutual TLS.
  • Create a custom admin role per integration and exclude privileged accounts from its reach.
  • Give SIEM and reporting connections log-read scope only.
  • Bind each integration credential to its source network or workload and alert on use elsewhere.
  • Restrict who can add federation trusts, routing rules and signing certificates, and turn off automatic account linking.
  • Give every signal stream receiver its own client, stream and audience value.
  • Run directory sync agents on dedicated tier 0 hosts and alert on new agent registrations.
  • Review the register quarterly and on every IdP administrator departure.

Standards and references

Related NHI Mgmt Group resources: Identity Provider Tenant Compromise Playbook · Service Account Security Guide · OAuth Token Introspection and Revocation Guide · Secrets Management Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.