Okta Access Gateway Monitoring Endpoint Returns "403 Forbidden"
Last Updated:
Overview
The Access Gateway (OAG) Monitoring REST API endpoint (/basic_status) returns the following HTTP error response:
403 Forbidden
Applies To
- Okta Access Gateway (OAG)
- REST API Monitoring
- Okta Identity Engine (OIE)
- Okta Classic Engine
Cause
- The client IP address is not included in the list of allowed IPs.
- The IP address in the
X-Forwarded-Forheader is not included in the list of allowed IPs.
If an IP address is passed in an X-Forwarded-For header (for example, by a load balancer), the originating IP address is considered the "real IP" and must be allowed. The load balancer's IP address would not need to be in the allowed list.
Solution
To resolve the issue dollow the steps below:
- If there is a load balancer in front of OAG, check the configuration to see if it is passing the client IP address in an
X-Forwarded-Forheader. - Ensure that the IP address is included in the allowed IP list.
- SSH to the OAG admin node.
- Select 4 - Monitoring.
- Select 5 - Configure REST APIs.
- Select 3 - Manage allowed IPs.
- If necessary, add the client IP address or the IP address passed in the
X-Forwarded-Forheader.
