stormpath / stormpath-framework-tck

HTTP integration tests that ensure a Stormpath web framework integration implements the Stormpath Framework Specification

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unsupported Accept header should result in 406

nbarbettini opened this issue · comments

The /oauth/token endpoint should strictly only allow Accept: application/json requests, and return HTTP 406 on anything else.

Please see my comment here: #218 (comment)

I'm with @edjiang on this one. The response will always be JSON, so there's really no point in asserting the Accept header.

I will bow to @edjiang and @robertjd on this one. 😄

I assume that #16 is okay, though?

Yeah, that's fine. Although my specific bias is not to write unnecessary tests, and that behavior really isn't necessary for things to function...