Debug and Troubleshooting

This comprehensive guide helps you debug and troubleshoot Oten IDP integration issues systematically.

πŸ” Debugging Methodology

Step 1: Identify the Problem Area

OAuth Flow Stages:

  1. JAR Creation - Creating and signing JWT authorization request

  2. Authorization - Redirecting user to Oten IDP

  3. Callback - Handling authorization response

  4. Token Exchange - Converting authorization code to tokens

  5. API Calls - Using access tokens for API requests

Step 2: Gather Information

Before troubleshooting, collect:

  • Error messages (exact text and error codes)

  • HTTP status codes

  • Request/response headers

  • Timestamps

  • Environment (development/production)

  • Client configuration

Step 3: Use Debugging Tools

πŸ› οΈ Debugging Tools

1. JAR Token Decoder

Use this to inspect your JAR tokens:

2. Environment Checker

Verify your environment configuration:

3. Quick Connectivity Test

Test basic connectivity to Oten IDP:

Step-by-Step Troubleshooting

Problem: "Cannot connect to Oten IDP"

Symptoms:

  • Network timeouts

  • Connection refused errors

  • DNS resolution failures

Solutions:

  1. Check network connectivity:

  1. Verify firewall settings:

  • Ensure outbound HTTPS (port 443) is allowed

  • Check corporate firewall/proxy settings

  • Verify no SSL/TLS inspection is interfering

  1. Check DNS resolution:

Problem: "JAR signature verification failed"

Symptoms:

  • Error code: invalid_request_object

  • Authorization request rejected

Solutions:

  1. For HS256 issues:

  1. For EdDSA issues:

Problem: "Token exchange fails"

Symptoms:

  • Error code: invalid_grant

  • Authorization code rejected

Solutions:

  1. Check authorization code:

  1. Verify PKCE parameters:

  1. Check redirect URI:

Troubleshooting Checklist

Before Contacting Support

Complete this checklist before reaching out for help:

Environment Setup:

JAR Implementation:

OAuth Flow:

Error Information Collected:

πŸ†˜ Getting Help

If you've completed the troubleshooting checklist and still need help:

Contact Support

Technical Support: [email protected]

Include This Information

When contacting support, please include:

  1. Environment details:

    • Development or production

    • Programming language and version

    • Library versions used

  2. Error information:

    • Complete error message

    • Error code and HTTP status

    • Timestamp of the error

  3. Configuration (sanitized):

    • Client ID (safe to share)

    • Redirect URI

    • Scopes requested

    • JAR signing method used

  4. Code samples:

    • JAR creation code (remove secrets)

    • Authorization URL generation

    • Token exchange implementation

  5. Debugging output:

    • JAR token structure (decoded)

    • Network request/response logs

    • Environment check results

What NOT to Share

Never share these in support requests:

  • Client secrets

  • Private keys

  • Access tokens

  • Refresh tokens

  • User credentials

Last updated