lib/gds-sso/config.rb in gds-sso-13.5.1 vs lib/gds-sso/config.rb in gds-sso-13.6.0
- old
+ new
@@ -23,9 +23,15 @@
mattr_accessor :cache
@@cache = ActiveSupport::Cache::NullStore.new
mattr_writer :api_only
+ mattr_accessor :additional_mock_permissions_required
+
+ def self.permissions_for_dummy_api_user
+ ["signin"].push(*additional_mock_permissions_required)
+ end
+
def self.user_klass
user_model.to_s.constantize
end
def self.use_mock_strategies?