Безопасная сделка - Гарант

Accepting SSO and SCIM integration: prove an offboarded employee loses access

A successful single sign-on demonstration is the easiest part of an identity project. The costly failure often appears in reverse: HR removes someone, while an old mobile session or API token still grants access to commercial data.

Identify the source of truth for every permission

Draw the actual chain: identity provider, HR directory, group service, SCIM connector, application and audit system. State which component provisions identities, which assigns roles and which has authority to revoke them. If two components can independently grant privileges, a sync loop may restore a role that HR deliberately removed. Ask the developer to demonstrate conflict resolution, not only the successful login path.

Choose a stable external identity key rather than relying on a mutable email address. People change names and mail domains, the application must still recognise the same employee rather than creating a second user with the old privileges intact. Include an email-renaming test before migrating real accounts or connecting sensitive production services.

Provision, alter and disable a controlled test identity

Create a synthetic employee with no production access. Add that identity to a minimal-privilege group and measure how long the application takes to reflect the permission. Move the employee to a different team and confirm that old rights disappear, adding the new role without removing the old one is a serious, easily missed bug. Then disable the account upstream and test all previously available entry paths.

Do not stop at the browser login. Examine mobile access tokens, API credentials, open WebSocket sessions, fallback authentication and refresh tokens. An old client may remain active even when the identity provider refuses new authentication requests. Specify a measurable maximum revocation delay and list which types of credential the limit covers. “Immediately” should be replaced by an agreed test condition.

Verify existing sessions cannot outlive changed roles

Start with an administrator session already open, then downgrade that person to a normal employee. Try the admin page through a saved direct URL and call its underlying API endpoint. Check whether an old report download link still exposes data. Hiding a menu item is not sufficient if the server continues to honor the elevated request. Record both the status code and whether a data-changing action occurred.

Run negative cases with a disabled account, an expired signature, a revoked token and an attempted cross-tenant resource access. A rejected request should leave no side effect. If an endpoint changes records before displaying an authorization error, the acceptance test has failed even though the screen looks appropriately restricted.

Make the connector fail deliberately in the test environment

Pause communication with the identity provider, replay an SCIM change and deliver two changes out of order. A robust implementation must treat retries as retries rather than creating duplicate users or restoring old group memberships. Check how the operator learns that a deprovisioning event was not applied and whether delayed synchronization is visible in a log or alert. Silent stale access is a business risk.

Disable a user while the target application is unavailable. An HTTP success from the connector does not prove the application actually enforced the revocation. Demand evidence from the target system as well as the delivery log. For sensitive environments, agree a manual emergency-disable procedure and a later reconciliation step once synchronization resumes.

Test a permissions matrix rather than a single happy path

Prepare five identities: a new starter, ordinary staff member, team lead, external contractor and deactivated user. For each, enumerate permitted operations, forbidden operations and the scope of data visibility. After a mapping change, rerun the entire matrix. A narrow fix for a manager may accidentally grant the same feature to every employee if group names or default mappings are interpreted incorrectly.

Use synthetic profiles instead of sending genuine employee password lists to the contractor. Keep SAML/OIDC secrets and SCIM bearer credentials in controlled secret storage, not a chat transcript. Identify who will own those settings at handover and who can rotate signing certificates without relying on a former contractor’s personal account.

Specify acceptance evidence before approving the milestone

For each test record the starting state, action, expected result, observed outcome and evidence file. Cover SSO login, unauthorized access, role change, employee termination, revoked session, duplicate SCIM event, network failure and recovery. Critical cases should be repeatable using buyer-controlled identities rather than the developer’s preconfigured demo environment.

If payment is conditional, separate delivery of working authentication from proof of enforceable deprovisioning. A first milestone can cover documented sign-in and configuration, final approval may depend on the negative tests, audit records and complete secret handover. A screen recording can supplement, but not replace, reproducible evidence. Record any failed case alongside its potential data impact.

Close the project without leaving a backdoor

Agree a post-launch observation period, certificate renewal owner and emergency rollback procedure. At handover, inspect contractor service accounts, OAuth clients, delegated administrators and debug logs containing sensitive tokens. Successful functionality tests do not prove external privileges were removed after development ends.

The signed acceptance record should identify configuration versions, test accounts, outcomes of negative cases, exceptions and documented limitations. “SSO works” does not define acceptance when the real purpose of the project is to control access to commercial information. The lasting deliverable is a system the buyer can operate and audit independently.

Worked example

A company commissioned corporate SSO for its CRM. During the demo an engineer logged in successfully, and the buyer nearly approved payment. The next test removed an employee’s directory memberships, but the employee’s mobile app continued exporting customer records using an old API token. The parties held the final milestone until the server enforced token revocation and the administrator could see the block in audit records.

After remediation, testers repeated the scenario through a browser, a mobile device and a direct API call. The report included the upstream removal timestamp, the moment access actually stopped and the failed export attempt. Measuring that gap gives both sides an objective criterion if the problem returns after deployment.

Practical questions answered

Does a working SSO login prove a correct integration?

No. Changes of role, old sessions, deprovisioning, error handling and API authorization all require testing.

Can access revocation be checked without real employee details?

Yes. Use synthetic users and a dedicated identity directory with the same policy configuration.

What should final escrow release depend on?

Previously agreed reproducible security and delivery tests, plus complete configuration handover, rather than subjective impressions of the demonstration.

Review available deal-protection options and current terms at Guarantor

"