Commit a8610ec

mo <mo@mokhan.ca>
2018-10-20 19:00:16
remaining linter errors
1 parent a087f14
Changed files (3)
app/controllers/tokens_controller.rb
@@ -96,8 +96,8 @@ class TokensController < ApplicationController
       password_grant
     when 'urn:ietf:params:oauth:grant-type:saml2-bearer' # RFC7522
       assertion_grant
-    when 'urn:ietf:params:oauth:grant-type:jwt-bearer' # RFC7523
-      raise NotImplementedError
+      # when 'urn:ietf:params:oauth:grant-type:jwt-bearer' # RFC7523
+      # raise NotImplementedError
     end
   end
 
spec/requests/response_spec.rb
@@ -45,7 +45,7 @@ RSpec.describe "/response" do
 
         context "when the SAML request is no longer valid" do
           before do
-            allow_any_instance_of(Saml::Kit::AuthenticationRequest).to receive(:valid?).and_return(false)
+            allow(registry).to receive(:metadata_for).with(issuer).and_return(nil)
             get '/response'
           end
 
.rubocop.yml
@@ -24,6 +24,7 @@ Metrics/BlockLength:
 
 Metrics/LineLength:
   Exclude:
+    - 'db/migrate/*'
     - 'spec/**/*'
 
 Metrics/MethodLength: