Sha256: d365cba88f23666a33a85c9cb255b7e1c9238123bab54c2cd747b2e616ce02c7

Contents?: true

Size: 532 Bytes

Versions: 1

Compression:

Stored size: 532 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

1 entries across 1 versions & 1 rubygems

Version Path
couchkeeper-0.6.7 spec/requests/flows/implicit_grant_spec.rb