Use the OAuth token to consume API Gateway for Java web applications

Use an OAuth access token to authenticate requests sent to endpoints exposed through API Gateway.

Include the access token in the HTTP authorization header for every request sent by the application.

This mechanism allows API Gateway to validate client identity and enforce backend access policies consistently. It supports secure communication without embedding credentials in application code.