diff --git a/app/controllers/authorizations_controller.rb b/app/controllers/authorizations_controller.rb index 31ec29e8e..ac339121c 100644 --- a/app/controllers/authorizations_controller.rb +++ b/app/controllers/authorizations_controller.rb @@ -35,7 +35,6 @@ class AuthorizationsController < ApplicationController packaged_manifest = JSON.parse(RestClient.get("#{app_url}/manifest.json").body) public_key = OpenSSL::PKey::RSA.new(packaged_manifest['public_key']) manifest = JWT.decode(packaged_manifest['jwt'], public_key) - pp manifest message = verify(signed_string, Base64.decode64(params[:signature]), public_key, manifest) if not (message =='ok') diff --git a/spec/controllers/authorizations_controller_spec.rb b/spec/controllers/authorizations_controller_spec.rb index 0593bc568..eeff1a253 100644 --- a/spec/controllers/authorizations_controller_spec.rb +++ b/spec/controllers/authorizations_controller_spec.rb @@ -53,7 +53,7 @@ describe AuthorizationsController do packaged_manifest = {:public_key => @public_key.export, :jwt => JWT.encode(manifest, @private_key, "RS256")}.to_json - stub_request(:get, "http://#{url}/manifest.json"). + stub_request(:get, "#{url}/manifest.json"). to_return(:status => 200, :body => packaged_manifest, :headers => {}) @signed_string = [url,'http://pod.pod',"#{Time.now.to_i}", @nonce].join(';')