<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content

How to Prevent Timeout Errors for Token Inline Hooks

Okta Classic Engine
Okta Identity Engine
API Access Management

Overview

This article describes the types of issues that can cause inline hook executions to time out and how to prevent them.

Applies To

  • Token Inline Hooks

Cause

When Inline Hooks within Okta attempt to make a call to the endpoint configured for the hook, execution will automatically fail if it cannot complete within the hook's configured timeout.

 

These timeouts typically occur because the hook endpoint itself is failing to respond within this timeout. If the hook endpoint is secured with OAuth, a timeout can also occur if Okta is unable to get tokens from the OAuth provider AND call the hook endpoint within this timeout.

Solution

  • Ensure the hook endpoint responds to the request within the configured Inline Hook timeout. By default, this timeout is 3 seconds. Open a Support case if there is a need to adjust this timeout for a specific hook.
  • If securing a Token Inline Hook endpoint with OAuth, ensure that the implementation cannot trigger a recursive loop, where the hook is secured with tokens issued by the same Authorization Server that has the access rule that will invoke the same hook
Loading
Okta Support - How to Prevent Timeout Errors for Token Inline Hooks