Skip to content

Commit

Permalink
Merge pull request #1 from pakwfoley/pfoley/IAM-1697
Browse files Browse the repository at this point in the history
Remove changes from doorkeeper PR doorkeeper-gem#1003
  • Loading branch information
Pak Foley authored Apr 5, 2018
2 parents 7a44f73 + bd74ee0 commit 50d81d2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/doorkeeper/rails/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def authorization_routes(mapping)
as: mapping[:as],
controller: mapping[:controllers]
) do
routes.get '/native', action: :show, on: :member
routes.get '/:code', action: :show, on: :member
routes.get '/', action: :new, on: :member
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/authorizations_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def translated_error_message(key)

it 'should redirect immediately' do
expect(response).to be_redirect
expect(response.location).to match(/oauth\/authorize\/native\?code=#{Doorkeeper::AccessGrant.first.token}/)
expect(response.location).to match(/oauth\/authorize\//)
end

it 'should issue a grant' do
Expand Down
1 change: 0 additions & 1 deletion spec/requests/flows/authorization_code_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

access_grant_should_exist_for(@client, @resource_owner)

url_should_have_param('code', Doorkeeper::AccessGrant.first.token)
i_should_see 'Authorization code:'
i_should_see Doorkeeper::AccessGrant.first.token
end
Expand Down

0 comments on commit 50d81d2

Please sign in to comment.