Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

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

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: flyerhzm/switch_user
base: v0.8.0
...
head fork: flyerhzm/switch_user
compare: v0.9.0
Checking mergeability… Don't worry, you can still create the pull request.
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.
a1e3c2d
@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
61a05c6
@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 ?
bd75bfc
@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
Conflicts:
	Gemfile.lock
26691fe
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
2a3ec8f
@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
078a263
@flyerhzm Merge pull request #19 from lcowell/autoload_providers
move providers to SwitchUser::Provider::ProviderName
14f8873
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.
935272b
@flyerhzm Merge pull request #20 from lcowell/load_helpers
helper initialization only happens when Rails is present
bd0d6eb
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
ff1ec27
@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
7ea2ecf
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
5ad0200
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
ccbe24e
@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.
05fd721
@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
58364c7
@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
7496d4e
@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
check.
9d12f7d
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
suite
fbdb353
@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.