Skip to content

[Bug]: client.CallRevokeEndpoint mutates httpClient #911

Description

@jkroepke

Preflight Checklist

  • I could not find a solution in the documentation, the existing issues or discussions
  • I have joined the ZITADEL chat

Version

v3.47.5

Describe the problem caused by this bug

Calling client.CallRevokeEndpoint with an custom httpClient mutates the clients which lead to an unexpected behavior for the method.

oidc/pkg/client/client.go

Lines 182 to 184 in c9fca57

client.CheckRedirect = func(_ *http.Request, _ []*http.Request) error {
return http.ErrUseLastResponse
}

It may results to unknown side effects, if the httpClient is shared with other areas.

To reproduce

  1. Call client.CallRevokeEndpoint

Screenshots

No response

Expected behavior

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Priority

    None yet

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions