Skip to content

Conversation

@MatTheCat
Copy link
Contributor

@MatTheCat MatTheCat commented Jun 29, 2023

Q A
Branch? 6.2
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #50811
License MIT
Doc PR N/A

From RFC 6750:

the "error_description" attribute [provides] a human-readable explanation that is not meant to be displayed to end-users.

Not translating it avoids non-ASCII characters in Bearer’s value, which in turn avoid messing with RFC 8187 (fun read; thanks @derrabus!).

Not sure if and how this should be tested 🤔

@carsonbot carsonbot changed the title [Security] Does not translate Bearer header’s error_description [SecurityBundle] Does not translate Bearer header’s error_description Jun 29, 2023
@nicolas-grekas nicolas-grekas changed the title [SecurityBundle] Does not translate Bearer header’s error_description [SecurityBundle] Do not translate Bearer header’s error_description Jun 29, 2023
@nicolas-grekas
Copy link
Member

Thank you @MatTheCat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants