Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
Commits on Sep 20, 2012
@flyerhzm update README 16084bd
Commits on Sep 21, 2012
@lcowell lcowell added rspec dependency 02e4e94
@lcowell lcowell added sorcery provider b31a958
Commits on Sep 22, 2012
@lcowell lcowell ensure that all providers have the same method signature
added optional scope, so that the controller doesn't need to know which
provider it is talking to.
@lcowell lcowell added devise provider 6defd39
@lcowell lcowell specs should not talk to controller directly
otherwise we're not actually checking if the provider is doing its job
@lcowell lcowell added authlogic provider ca1cc46
@lcowell lcowell added restful authentication provider 2741a2e
@lcowell lcowell make all provider modules available to SwitchUser
should the requires be done in the controller where the interaction with the
provider actually happens ?
@lcowell lcowell handle all user session operations through the corresponding provider d4c2b10
@lcowell lcowell load provider based on SwichUser.provider bbcf1cc
@lcowell lcowell Merge remote-tracking branch 'upstream/master' into split_providers
Commits on Sep 23, 2012
@lcowell lcowell move specs in to a shared example c30bcc4
@flyerhzm Merge pull request #17 from lcowell/split_providers
Split providers
@flyerhzm autoload all providers 5901b57
Commits on Sep 27, 2012
@lcowell lcowell move providers to SwitchUser::Provider::ProviderName
fixes error raise by SwitchUserController#provider_class
autoload wasn't finding the constant Provider
Provider wasn't namespaced under SwitchUser, so it was poluting the namespace
@flyerhzm Merge pull request #19 from lcowell/autoload_providers
move providers to SwitchUser::Provider::ProviderName
Commits on Sep 30, 2012
@lcowell lcowell helper initialization only happens when Rails is present
This will allow us to test the SwitchUser module without being dependent on
rails being loaded.
@flyerhzm Merge pull request #20 from lcowell/load_helpers
helper initialization only happens when Rails is present
Commits on Oct 01, 2012
@lcowell lcowell remove unused code 26c786e
@lcowell lcowell update specs to use constants namespaced under SwitchUser f4623b2
@lcowell lcowell move logic for resolving the provider class out of the controller
move in to SwitchUser as it is much easier to test
@lcowell lcowell seperate the definition of config accessors and their defaults
makes it easier to see what the defaults are as they are not mixed with the definition of the accessors
Commits on Oct 02, 2012
@lcowell lcowell create UserLoader class for retrieving a user based on scope and id
- raise an error for an invalid scope
- build finder based on available_users_identifiers
- needs a better name
Commits on Oct 03, 2012
@lcowell lcowell Use relative namespace e810989
@lcowell lcowell unused code, shouldn't be in here
also, this class loads a user from a scope and id, converting a string
to a scope and id is another responsibility
@lcowell lcowell remove #find_user from controller use UserLoader class 966be6b
@lcowell lcowell updated devise provider to support multiple user scopes 3e23008
Commits on Oct 05, 2012
@lcowell lcowell added provider#login_exclusive
this will log the user in to the requested scope and log the user out of all
other scopes. This only appears to apply to Devise as the other providers to
not support multiple scopes, but all providers must support it so we have a
consistent API.
@lcowell lcowell ensure our scope can come in as a string b6ee30e
@lcowell lcowell use #login_exclusive in controller for logging in the user
login_exclusive is more descriptive than the previous controller code
improves test coverage
@lcowell lcowell added rspec options to colorize output 97bc6d9
Commits on Oct 12, 2012
@lcowell lcowell refactored helper to generate html programmatically
- use provider to retrieve the current_user and remove logic from helper
- don't look up current_user on each scope iteration
@lcowell lcowell added provider#current_users_without_scope
This provides us with a way to load up all current users for all scopes. This
is useful as seen in the SwitchUserHelper where we don't know which scope to
Commits on Oct 13, 2012
@lcowell lcowell skip method using method guard if switch_user is not currently available 79d5075
Commits on Oct 30, 2012
@lcowell lcowell added provider#logout_all to ensure users are logged out of any scope d62049c
@lcowell lcowell added development dependency for activesupport
calling bundle on the project should install any requirements to run the test
@lcowell lcowell remove duplication in generating option tags 337472f
Commits on Oct 31, 2012
@lcowell lcowell added a note for handling wildcard routes 0c274bb
@lcowell lcowell version bump in preperation for new release 6e360cd
@lcowell lcowell add myself as a contributer 5ff5b33
Something went wrong with that request. Please try again.