…at in the code
…you if you use provider. See README
…th_version="1.0" OAuth 1 allows whitespace between the header parameters, but this is optional. OAuthFilter was using this optionsl behavior to discriminate between oauth1 and oauth2 tokens. While most OAuth clients put whitespace between their parameters, some clients do not. The filter was mis-identifying these tokens as OAuth2 tokens, breaking the authentication chain. oauth2_token now checks if oauth_version="1.0". If this is present, then the token is rejected. oauth_version is an optional paramter. When it is missing, oauth2_token then defaults to checking for whitespace between the parameters.
Also use color in the RSpec output
… Rack middleware I was surprised that when using `OAuth::Controllers::ApplicationControllerMethods.oauthenticate`, every token were valid for authentication, even the invalidated ones! So I think this patch fix this (I've updated the specs). I've also simplified a condition in `OAuth::Rack::OAuthFilter#oauth2_token` and the Guardfile to remove the deprecation notice.