Sha256: 91143aaaac39158b9e2392f03d9471e14d24835f6527de4ef81822c96da8ae4c
Contents?: true
Size: 781 Bytes
Versions: 3
Compression:
Stored size: 781 Bytes
Contents
require 'spec_helper_integration' feature 'Token endpoint' do background do client_exists authorization_code_exists :application => @client, :scopes => "public" end scenario 'respond with correct headers' do post token_endpoint_url(:code => @authorization.token, :client => @client) should_have_header 'Pragma', 'no-cache' should_have_header 'Cache-Control', 'no-store' end scenario 'accepts client credentials with basic auth header' do post token_endpoint_url(:code => @authorization.token, :redirect_uri => @client.redirect_uri), {} , { 'HTTP_AUTHORIZATION' => basic_auth_header_for_client(@client) } should_have_json 'access_token', Doorkeeper::AccessToken.first.token end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
doorkeeper-0.3.4 | spec/requests/endpoints/token_spec.rb |
doorkeeper-0.3.3 | spec/requests/endpoints/token_spec.rb |
doorkeeper-0.3.2 | spec/requests/endpoints/token_spec.rb |