feat: add forwardAuthorizationOnRedirect option to GraphQL and HTTP r…#49
Open
Gopi-bruno wants to merge 1 commit into
Conversation
…equest configurations
shubh-bruno
approved these changes
Jun 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces the
forwardAuthorizationOnRedirectsetting to both HTTP and GraphQL request settings schemas.This change provides the foundational schema and type definitions required for backward compatibility with the upcoming "Strip Auth Headers on Redirect" feature implementation in the Bruno core repository.
Changes Made
@opencollection/schema(opencollection.schema.json):"forwardAuthorizationOnRedirect"property to theHttpRequestSettingsdefinition."forwardAuthorizationOnRedirect"property to theGraphQLRequestSettingsdefinition.requiredandenumarrays.@opencollection/types(requests/http.ts,requests/graphql.ts):forwardAuthorizationOnRedirect?: boolean | 'inherit';to both theHttpRequestSettingsandGraphQLRequestSettingsinterfaces.Motivation and Context
As requested in the recent agent chat titled "Strip Auth Headers on Redirect", Bruno needs a way to store a user's preference regarding forwarding
Authorizationheaders when a request encounters an HTTP redirect.By pushing this schema update to the OpenCollection specification first, we ensure that the Bruno application can safely read and persist this setting for existing and new collections.
How Has This Been Tested?
npx tsc) in theoc-typespackage with zero errors.oc-docsReact playground andoc-schema-explorerlocally to verify that the generated interactive UI displays the newforwardAuthorizationOnRedirectsetting without any schema resolution errors.Types of changes