lib/gds-sso/warden_config.rb in gds-sso-9.2.3 vs lib/gds-sso/warden_config.rb in gds-sso-9.2.4

- old
+ new

@@ -170,13 +170,16 @@ def authenticate! logger.debug("Authenticating with mock_gds_sso_api_access strategy") dummy_api_user = GDS::SSO.test_user || GDS::SSO::Config.user_klass.where(email: "dummyapiuser@domain.com").first if dummy_api_user.nil? dummy_api_user = GDS::SSO::Config.user_klass.new( + { email: "dummyapiuser@domain.com", uid: "#{rand(10000)}", - name: "Dummy API user created by gds-sso", - as: :oauth) + name: "Dummy API user created by gds-sso" + }, + {as: :oauth} + ) dummy_api_user.permissions = ["signin"] dummy_api_user.save! end success!(dummy_api_user) end