Sha256: 5766e337bc69198b436e1e869a08d822fdee4c79ed0ba37ae3b1a2d01b9838a6

Contents?: true

Size: 513 Bytes

Versions: 26

Compression:

Stored size: 513 Bytes

Contents

require 'spec_helper_integration'

feature 'Implicit Grant Flow' do
  background do
    config_is_set(:authenticate_resource_owner) { User.first || redirect_to('/sign_in') }
    client_exists
    create_resource_owner
    sign_in
  end

  scenario 'resource owner authorizes the client' do
    visit authorization_endpoint_url(:client => @client, :response_type => 'token')
    click_on "Authorize"

    access_token_should_exist_for @client, @resource_owner

    i_should_be_on_client_callback @client
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
doorkeeper-1.1.0 spec/requests/flows/implicit_grant_spec.rb
doorkeeper-1.0.0 spec/requests/flows/implicit_grant_spec.rb
doorkeeper-1.0.0.rc2 spec/requests/flows/implicit_grant_spec.rb
doorkeeper-1.0.0.rc1 spec/requests/flows/implicit_grant_spec.rb
doorkeeper-0.7.4 spec/requests/flows/implicit_grant_spec.rb
doorkeeper-0.7.3 spec/requests/flows/implicit_grant_spec.rb
doorkeeper-0.7.2 spec/requests/flows/implicit_grant_spec.rb
doorkeeper-0.7.1 spec/requests/flows/implicit_grant_spec.rb
doorkeeper-0.7.0 spec/requests/flows/implicit_grant_spec.rb
doorkeeper-0.6.7 spec/requests/flows/implicit_grant_spec.rb
doorkeeper-0.6.6 spec/requests/flows/implicit_grant_spec.rb
doorkeeper-0.6.5 spec/requests/flows/implicit_grant_spec.rb
doorkeeper-0.6.4 spec/requests/flows/implicit_grant_spec.rb
doorkeeper-0.6.3 spec/requests/flows/implicit_grant_spec.rb
doorkeeper-0.6.2 spec/requests/flows/implicit_grant_spec.rb
doorkeeper-0.6.1 spec/requests/flows/implicit_grant_spec.rb
doorkeeper-0.6.0 spec/requests/flows/implicit_grant_spec.rb
doorkeeper-0.6.0.rc1 spec/requests/flows/implicit_grant_spec.rb
doorkeeper-0.5.0 spec/requests/flows/implicit_grant_spec.rb
doorkeeper-0.5.0.rc1 spec/requests/flows/implicit_grant_spec.rb