My Oracle Support Banner

REST Adapter With OAUTH2 Policies Are Not Persisting The Access Token Expires_in Value (Doc ID 2890658.1)

Last updated on AUGUST 23, 2022

Applies to:

Oracle Web Services Manager - Version 12.2.1.4.0 and later
Information in this document applies to any platform.

Symptoms

ACTUAL BEHAVIOR
---------------

Implement OAUTH2.0 with Azure Active Directory as the authentication provider.
Use a REST adapter as an OSB business service with security policies (oracle/http_oauth2_token_client_policy and oracle/oauth2_config_client_policy) attached.

This setup successfully invokes the token endpoint, fetches the token and passes it to the resource endpoint in header.

However, the token is being fetched for all consecutive calls, which means the expires_in parameter in the token response is not being considered for consecutive calls.


EXPECTED BEHAVIOR
-----------------------

The token should be persisting during the Access Token EXPIRES_IN parameter value.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.