oauth2:OutboundOAuth2Provider is not renewing access token when downstream web API returns 403 #17
Labels
Area/Security
Issues related to stdlib security
module/oauth2
Type/Bug
Verson/SwanLakeDump
All issues planned for Swan Lake GA release
Milestone
Description:
We are using Azure log analytics REST API and authenticate requests using
client_credentials
grant type with https://login.microsoftonline.com as the token endpoint.We noticed that Azure log analytics REST API returns an HTTP response with
403
status code and the below payload when the token is expired.Due to this (not received
401
response), theoauth2:OutboundOAuth2Provider
is not attempting to renew the token, instead uses the same expired token.Affected Versions:
Ballerina Swan Lake Preview 2
The text was updated successfully, but these errors were encountered: