lib/keratin/authn/test/helpers.rb in keratin-authn-0.1.0 vs lib/keratin/authn/test/helpers.rb in keratin-authn-0.1.1
- old
+ new
@@ -23,9 +23,10 @@
@keypair ||= OpenSSL::PKey::RSA.new(512)
end
# stubs the endpoints necessary to validate a signed JWT
private def stub_auth_server
+ Keratin::AuthN.keychain.clear
stub_request(:get, "#{Keratin::AuthN.config.issuer}#{Keratin::AuthN.config.configuration_path}").to_return(
status: 200,
body: {'jwks_uri' => "#{Keratin::AuthN.config.issuer}/jwks"}.to_json
)
stub_request(:get, "#{Keratin::AuthN.config.issuer}/jwks").to_return(