We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36e5564 commit eb41b72Copy full SHA for eb41b72
spec/unit/endpoint/authorization_spec.rb
@@ -48,6 +48,11 @@
48
end
49
50
describe 'evil hackers messing with the state' do
51
+ before do
52
+ WebMock.stub_request(:post, "https://foobar.com/access_token_path")
53
+ .to_return(status: 200, body: 'access_token=token&token_type=bearer')
54
+ end
55
+
56
it 'does not succeed if state cookie mismatches' do
57
Travis.redis.sadd('github:states', 'github-state')
58
response = get '/auth/handshake?state=github-state&code=oauth-code'
0 commit comments