Skip to content

Configurable http error code to renew acces token #289

@1DIce

Description

@1DIce

Hello,

I am running into the issue that the third-party service I call via the http sink does return an 403 error code instead of the standard 401 when the access token is expired. This leads to the issues that the http sink is not able to renew the access token after it expires.

It would be very helpful if the error codes would be configurable. I was thinking about a list like this:

  "oauth2.renew.token.on.status.codes": "401,403"

The default value could be "401" to avoid breaking changes.

I would be willing to contribute a pull request for this feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions