Identity Troubleshooting
Summary
Use this page to distinguish authentication failures from authorization, tenant, token-validity, and session failures without inspecting or exposing sensitive token contents.
Audience
- Platform and customer administrators
- Support and implementation teams
- Developers, QA engineers, and DevOps engineers
Purpose
The guidance provides safe checks supported by the current source and identifies when access data or environment configuration needs authorized review.
Architecture
Business concepts
- A
401response means the request has not established an accepted authenticated principal for the operation. - A
403response means authentication may have succeeded, but the operation is not allowed. - Tenant failures can occur during login or downstream tenant-scoped evaluation.
- Session revocation or refresh-token expiry prevents token renewal.
- Clock differences can affect time-based token validation outside the configured tolerance.
Technical implementation
Identity login, refresh, current-user, and session operations return unauthorized responses for rejected credentials, invalid tokens, inactive accounts, invalid tenant context, invalid refresh credentials, or revoked sessions as applicable. Downstream applications return forbidden responses when authenticated claims do not satisfy their access rules.
Do not paste tokens, passwords, or decoded sensitive claims into tickets, chat, logs, or diagnostic tools.
Confirmed source references
microservices/src/identity-service/Program.csmicroservices/src/identity-service/Application/Auth/IdentityAuthService.csmicroservices/src/identity-service/Application/Security/IdentityJwtTokenService.csmicroservices/src/gateway-api/Program.csmicroservices/src/platform-service/Api/PlatformAdminEndpoints.cs
Symptoms
| Symptom | Supported interpretation |
|---|---|
401 Unauthorized | Credentials, access token, refresh token, user state, session, portal, or tenant validation was not accepted. |
403 Forbidden | The authenticated identity does not satisfy a downstream role, permission, tenant, or resource-scope rule. |
| Expired-token response | The access token is outside its accepted validity period. |
| Invalid-tenant response | Tenant context is missing, mismatched, inactive, or no longer valid for the selected client portal. |
| Permission denied | Required downstream access was not present for the principal or resource scope. |
| Time-related validation failure | System clocks may differ beyond the validator’s configured tolerance. |
| Session expired or revoked | The refresh record is expired/revoked, the user is inactive, or the associated device session is revoked. |
Cause
Confirm the response status and correlation identifier first. Then check, through approved support tooling, whether the user selected the correct portal and tenant, the account remains active, the expected role/permission assignment exists, and the relevant device session remains active. Environment-specific token-validation configuration requires a DevOps or security owner.
Resolution
| Condition | Safe resolution |
|---|---|
401 or expired access token | Attempt the normal refresh flow. If refresh is rejected, sign in again through the correct portal. |
403 or permission denied | Ask an authorized administrator to review the user’s role, permissions, tenant assignment, and resource scope. Do not circumvent the downstream policy. |
| Invalid tenant | Confirm the intended client portal and tenant selection. Escalate tenant status or identity mismatch to the platform owner. |
| Clock skew | Ensure participating hosts use approved time synchronization. Do not weaken token validation as a local workaround. |
| Session expired or revoked | Sign in again. If the revocation was unexpected, review device sessions and security events through approved channels. |
Validation
After remediation, confirm that login or refresh succeeds through the intended portal, the current-user response represents the expected tenant and role context, and the protected operation returns the expected authorized result. Use correlation-aware logs for escalation without recording credentials or token values.
Related Articles
See Also
Keywords
- Authentication failure
- Authorization failure
- Tenant validation
Revision Information
- Last reviewed: 2026-07-14
- Owner: identity-team
- Status: Draft