Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically setting service_url? #194

Open
vemv opened this issue Jan 20, 2014 · 6 comments
Open

Dynamically setting service_url? #194

vemv opened this issue Jan 20, 2014 · 6 comments
Labels
Milestone

Comments

@vemv
Copy link

vemv commented Jan 20, 2014

If a logged-out user tries visiting a specific page (like /foos/42), the RubyCAS filter will redirect him to the config.cas_base_url after which the user will be redirected to config.cas_service_url.

This service_url is a single per-application value though - one may want to redirect users on a per-request basis - typically to the page they were trying to visit at first.

Please consider providing a mechanism for this.

@mitfik mitfik added the feature label Feb 7, 2014
@mitfik mitfik added this to the rubycas 2.0 milestone Feb 7, 2014
@mitfik
Copy link
Contributor

mitfik commented Feb 7, 2014

Thanks for the input, for sure we will consider that but probably it will be in RubyCAS2.0

@vemv
Copy link
Author

vemv commented Feb 7, 2014

Great to know!

If you don't mind my asking, will you be able to work on 2.0 anytime soon?

@mitfik
Copy link
Contributor

mitfik commented Feb 7, 2014

The plan is to release 2.0 before June.

@Aeon
Copy link
Contributor

Aeon commented Nov 12, 2014

+1

@Aeon
Copy link
Contributor

Aeon commented Nov 14, 2014

Should be fixable by my commit, please consider it :)

@Aeon
Copy link
Contributor

Aeon commented Sep 29, 2016

@vemv since my commit has been merged, you can now pass an additional parameter, from, containing path to be combined with the service hostname, and to be used for redirect.

So, you can now bounce the user to /login?service=https://host.com&from=/foos/42 to have them redirected to specific path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants