Граф коммитов

67 Коммитов

Автор SHA1 Сообщение Дата
David Thompson a4fa03ba01 Allow multiple SQL authenticators to be used without conflict.
Rather than clobber the user_model class variable every time a SQL
authenticator is used, use a hash to map auth_index to the associated
user model.
2014-07-28 13:29:45 -04:00
Daniel Ghilea 698a014aa4 Fixing #179: calling stringify_keys on the extra_attributes hash.
Improve Daniel's work and move stringify_keys to
lib/casserver/authenticators/base.rb.
2014-03-01 22:38:20 +01:00
Daniel Ghilea 81fcd5ffb8 Fixes #180: updated spec to take into account namespace in the xml response. 2014-03-01 22:27:27 +01:00
Adam Crownoble 4b7ce85daf Also fix active_directory_ldap path in spec_helper
Should have caught this in the last commit. Oh well.
2012-12-21 16:57:29 -08:00
Tyler Pickett d323c3af93 Merge branch 'allowed_service_ips'
Conflicts:
	lib/casserver/server.rb
	spec/spec_helper.rb
2012-12-21 11:39:49 -06:00
Robert Mitwicki a5ea16b07d Merge remote-tracking branch 'origin/master' into autoloads
Conflicts:
	rubycas-server.gemspec
	spec/spec_helper.rb
2012-12-15 16:39:34 +01:00
Adam Crownoble 1be41b92d9 Add support for allowed_service_ips whitelist.
allowed_service_ips can be set in config.yml to limit service
validations to a certain set of IPs or IP ranges. This prevents
just any site from being able to grab potentially sensitive
personal information.
2012-12-12 22:09:24 -08:00
Robert Mitwicki d35b17fcb8 Merge pull request #137 from biola/logout_request_xml_fix
Add missing namespaces in LogoutRequest XML
2012-12-06 06:35:07 -08:00
Adam Crownoble b9fefdff23 Test that single sign out XML is valid.
This test will ensure that the single sign out XML can be parsed
and the service ticket can be retrieved.
2012-12-05 10:46:29 -08:00
Robert Mitwicki 99e6b178a8 Fix tests for login/logut methods. 2012-12-05 10:09:46 +01:00
Robert Mitwicki dd373d62ec Move authenticators dependencies into Gemfile
Add autoloads for all authenticators, to do not requrie to install them all if
someone use only few or one.
Add groups to Gemfile.
2012-11-27 14:50:20 +01:00
Robert Mitwicki 728fe1e97a Fix load_server parameter for cas spec. 2012-11-23 16:30:27 +01:00
Robert Mitwicki b5fa4c6f35 Merge pull request #123 from r2practice/code-reorg
Reorganize some files
2012-11-23 07:22:19 -08:00
Tyler Pickett a5c3ec97ec add the missing configuration in cas_spec
Signed-off-by: Tyler Pickett <t.pickett66@gmail.com>
2012-10-26 15:28:54 -05:00
Tyler Pickett 71ed84e82e merged in from master and resolved conflicts 2012-10-26 14:13:24 -05:00
Matt Zukowski 446678ae2e Merge pull request #119 from r2practice/string-refactor
random_string refactor
2012-10-24 16:07:25 -07:00
Matt Zukowski 487bc407e6 Merge pull request #124 from r2practice/cas-helper-specs
No functional changes here. Just adding specs against the cas protocol helpers.
2012-10-24 16:06:53 -07:00
Tyler Pickett 899482c9d8 Merge in from master after active-update merge 2012-10-18 10:35:35 -05:00
Tyler Pickett ad979c3ea7 use Rack::Test DSL for serviceValidate test 2012-10-18 10:13:59 -05:00
Tyler Pickett 201dc7a1a3 remove sinatra DSL from Object
So we can use Rack::Test we need sinatra to stop defining the get
method so we can use the Rack::Test version because it won't override
methods it finds already implemented.

Signed-off-by: Tyler Pickett <t.pickett66@gmail.com>
2012-10-18 10:13:18 -05:00
Tyler Pickett 21c5ef5a67 merged in from master after active-update merge 2012-10-17 15:34:58 -05:00
Matt Zukowski d84eb1404d removed debug puts 2012-10-17 14:53:26 -04:00
Matt Zukowski 49b0d3bbd0 XML responses now handle UTF-8 text properly under ruby 1.8.7 2012-10-17 14:52:27 -04:00
Tyler Pickett 1b7200639f spec against #generate_proxy_ticket
Signed-off-by: Tyler Pickett <t.pickett66@gmail.com>
2012-10-17 12:38:05 -05:00
Tyler Pickett aab63e6f4d add specs for #generate_service_ticket
Signed-off-by: Tyler Pickett <t.pickett66@gmail.com>
2012-10-17 12:38:05 -05:00
Tyler Pickett fe126fa1b7 add specs for #generate_ticket_granting_ticket
Signed-off-by: Tyler Pickett <t.pickett66@gmail.com>
2012-10-17 12:38:05 -05:00
Tyler Pickett 69eefadae1 add spec for #generate_login_ticket
Signed-off-by: Tyler Pickett <t.pickett66@gmail.com>
Conflicts:
	spec/casserver/cas_spec.rb
2012-10-17 12:37:59 -05:00
t.pickett66 45719c9682 builder isn't extracted for ActiveSupport 2.3/3.0
Signed-off-by: t.pickett66 <t.pickett66@gmail.com>
2012-10-17 13:37:40 -04:00
t.pickett66 6558c1b46d address builder changes
Signed-off-by: t.pickett66 <t.pickett66@gmail.com>
2012-10-17 13:36:55 -04:00
Tyler Pickett 0db0b9ceaa set a default config for the test server
Signed-off-by: Tyler Pickett <t.pickett66@gmail.com>
2012-10-17 12:31:19 -05:00
Tyler Pickett 81ec9c5bcf move authenticator specs to a more conventional spot
Signed-off-by: Tyler Pickett <t.pickett66@gmail.com>
2012-10-17 12:31:02 -05:00
Tyler Pickett 14494d020b move utils spec to a more conventional location
Signed-off-by: Tyler Pickett <t.pickett66@gmail.com>
2012-10-17 12:30:47 -05:00
Tyler Pickett dde11ad6d3 move model spec to a more conventional spot
Signed-off-by: Tyler Pickett <t.pickett66@gmail.com>
2012-10-17 12:30:38 -05:00
Tyler Pickett 5e5c1fbdcb update specs to new config file layout
Signed-off-by: Tyler Pickett <t.pickett66@gmail.com>
2012-10-17 12:30:22 -05:00
Tyler Pickett e20bc22665 point load_server helper at new config file location
Signed-off-by: Tyler Pickett <t.pickett66@gmail.com>
2012-10-17 12:30:11 -05:00
Tyler Pickett 88440c96a4 move config files for a touch of organization
Signed-off-by: Tyler Pickett <t.pickett66@gmail.com>
2012-10-17 12:30:01 -05:00
Tyler Pickett 967f5d1be3 suppress debugging output on redirect testing
Signed-off-by: Tyler Pickett <t.pickett66@gmail.com>
2012-10-17 12:29:14 -05:00
Tyler Pickett 96720c9f23 remove random_string tests
Signed-off-by: Tyler Pickett <t.pickett66@gmail.com>
2012-10-02 11:15:27 -05:00
Tyler Pickett ce7c7b9551 add String.random to replace util function
Two things here, first we've removed an external
dependency for people who aren't using the
SQLEncypted authenticator. Second I've moved the
random string generator to a place that might
surprise people new to the codebase a little less.

Signed-off-by: Tyler Pickett <t.pickett66@gmail.com>
2012-10-01 16:08:20 -05:00
Matt Zukowski 8884e490b2 adapted localization specs to work with new R18n-based localization system 2012-04-19 14:33:44 -04:00
Matt Zukowski 08529751ef adapted RackTest external redirect monkeypatch to work with Capybara 1.1.2 2012-04-19 14:30:49 -04:00
Matt Zukowski 4369335d74 all specs should now pass under ruby 1.9.2 and 1.8.7 2011-08-03 14:14:38 -04:00
Fabio Napoleoni 14e4a13ef0 Updated specs with method_type example, updated check for method type as symbol 2011-06-29 04:44:56 +08:00
Fabio Napoleoni fad528d353 Implemented filter_attributes and extra_attributes options 2011-06-29 04:44:32 +08:00
Fabio Napoleoni ed9747b9ed More specs added 2011-06-29 04:44:14 +08:00
Fabio Napoleoni 5b455f1e34 Base class and base spec 2011-06-29 04:43:55 +08:00
Will Mernagh 0413c0c085 Escapes all evaluated HTML by inserting `escape_html` after `<%=`. There
are some places where this is not appropriate however and thus it
exclusing in some places.
2011-04-22 11:45:48 -04:00
Matt Zukowski 9d0fb4acf4 added spec for LDAP authenticator 2011-03-02 19:04:30 -05:00
Matt Zukowski d56eb6e35d moved specs contributed by 'uchouhan' out to root spec directory 2011-03-02 17:46:40 -05:00
Umang Chouhan 2565f6010b Adding a spec for CASServer::Utils#log_controller_action. 2011-03-03 06:23:56 +08:00