Duende.Bff.Yarp: inconsistent parsing of Yarp route metadata in v3.0.0 #159
Unanswered
ripebananas
asked this question in
BFF
Replies: 1 comment
-
Thanks for reporting this! Much appreciated. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, after upgrading to Duende.Bff.Yarp v.3.0.0, I noticed that the Yarp route metadata is parsed a bit inconsistently (version 2.3.0 does not have this issue).
Consider the following metadata that works as expected in version 2.3.0 (notice the config has
true
value, and not"true"
):The
Duende.Bff.Yarp.OptionalUserToken
does not seem to work anymore, becauseOptionalUserToken
is parsed like this in AccessTokenRequestTransform.cs:As opposed to this, 'Duende.Bff.Yarp.AntiforgeryCheck` is parsed more robustly in AntiforgeryMiddleware.cs:
Needless to say, after updating the Yarp route metadata as
"Duende.Bff.Yarp.OptionalUserToken": "true"
, the issue is gone, but this seems like a small breaking change to me, thanks.Beta Was this translation helpful? Give feedback.
All reactions