FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix UAA Authorizations accept headers by Lokowandtg · Pull Request #1379 · cloudfoundry/cf-java-client · GitHub

Repository navigation

Fix UAA Authorizations accept headers - #1379

Merged
Kehrlann merged 1 commit into
cloudfoundry:5.x.xfrom
Lokowandtg:5.x.x.Authorizations
Oct 2, 2026
Merged

Kehrlann merged 1 commit into
cloudfoundry:5.x.xfrom
Lokowandtg:5.x.x.Authorizations

Conversation

Lokowandtg commented Sep 30, 2026 •
edited by Kehrlann
Loading

Copy link
Copy Markdown
Contributor

Now in the correct branch

Fixes #1374

Lokowandtg requested a review from Kehrlann September 30, 2026 15:35

Kehrlann left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Which tests are failing exactly?
Which UAA version?

GetOpenIdProviderConfigurationResponse.class,
builder -> builder.pathSegment(".well-known", "openid-configuration"))
builder -> builder.pathSegment(".well-known", "openid-configuration"),
ReactorAuthorizations::removeAuthorization)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Why remove authorization here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

The documentation here: https://docs.cloudfoundry.org/api/uaa/version/79.1.0/index.html#openid-provider-configuration-request does not require an authorization for this request.

HttpHeaderNames.ACCEPT,
HttpHeaderValues.APPLICATION_X_WWW_FORM_URLENCODED);
},
ReactorAuthorizations::removeAuthorization)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

why remove authorization here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Same here, documentation states that is works without authorization.

Kehrlann left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Prefer outbound.set(, ) to remove + add

Comment on lines +104 to +109
outbound -> {
outbound.remove(HttpHeaderNames.ACCEPT);
outbound.add(
HttpHeaderNames.ACCEPT,
HttpHeaderValues.APPLICATION_X_WWW_FORM_URLENCODED);
},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality
Suggested change
outbound -> {
outbound.remove(HttpHeaderNames.ACCEPT);
outbound.add(
HttpHeaderNames.ACCEPT,
HttpHeaderValues.APPLICATION_X_WWW_FORM_URLENCODED);
},
outbound ->
outbound.set(
HttpHeaderNames.ACCEPT,
HttpHeaderValues.APPLICATION_X_WWW_FORM_URLENCODED),

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Good point. Will do.

Copy link
Copy Markdown
Contributor Author

Which tests are failing exactly?
Failing:
authorizeByAuthorizationCodeGrantBrowser
authorizeByImplicitGrantBrowser
authorizeByOpenIdWithImplicitGrant
authorizeByOpenIdWithIdToken
authorizeByAuthorizationCodeGrantHybrid
authorizeByOpenIdWithAuthorizationCodeGrant

Success:
openIdProviderConfiguration
authorizeByAuthorizationCodeGrantApi

Which UAA version?
Tested with UAA version cloudfoundry/uaa-release 79.5.1-1, the problem exists for at least a year.

Kehrlann changed the title fix #1374, AuthorizationsTest 6 out of 8 are failing Fix UAA Authorizations accept headers Oct 2, 2026
Kehrlann merged commit e4fd964 into cloudfoundry:5.x.x Oct 2, 2026
1 check passed
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL