lol, just needed to remove 'http://' in the specs to get the controllers passing again
This commit is contained in:
parent
f9b09d32f8
commit
54ef22b83e
2 changed files with 1 additions and 2 deletions
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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(';')
|
||||
|
|
|
|||
Loading…
Reference in a new issue