Skip to content

Conversation

GriffinSchneider
Copy link
Contributor

@GriffinSchneider GriffinSchneider commented May 5, 2016

The OAuth spec says that the correct format is Bearer <token>, not BEARER <token>. My server using node-oauth2-server was rejecting my request without this fix.

It looks like the only place BEARER was in actual code was modules/swagger-codegen/src/main/resources/objc/Configuration-body.mustache. I experienced the issue in ObjC.

This pullreq was created by running

find . -type f -exec sed -i "" "s/BEARER/Bearer/g" {} \;

and then ignoring all the whitespace-only changes that generates.

RFC6750 indicates that the correct header format is 'Bearer <token>',
not 'BEARER <token>'.
@wing328 wing328 added this to the v2.2.0 milestone May 6, 2016
@wing328
Copy link
Contributor

wing328 commented May 6, 2016

@GriffinSchneider thanks for the PR.

@wing328 wing328 merged commit 1dd8faf into swagger-api:master May 6, 2016
@GriffinSchneider GriffinSchneider deleted the patch-1 branch May 6, 2016 14:27
@GriffinSchneider GriffinSchneider restored the patch-1 branch May 19, 2016 16:20
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.

2 participants