I guess you could do a semi hack and implement a PluginServletFilter [1] that looks at the referrer field of the http request and if that is the login form redirect the request to your custom page.
The normal case for Jenkins is to redirect the user to whatever page it came from before going to the login form, so you’d loose that unless the filter also took a look at where the request was going.
Robert Sandell
Software Tools Engineer - SW Environment and Product Configuration
Sony Mobile Communications
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/Tr1Ln3VK2g0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-de...@googlegroups.com.
Thanks a lot Robert and Jesse.. I will try with both of the options. I will update once done..
On Wed, Oct 30, 2013 at 8:12 PM, Sandell, Robert <Robert....@sonymobile.com> wrote:
I guess you could do a semi hack and implement a PluginServletFilter [1] that looks at the referrer field of the http request and if that is the login form redirect the request to your custom page.
The normal case for Jenkins is to redirect the user to whatever page it came from before going to the login form, so you’d loose that unless the filter also took a look at where the request was going.
Robert Sandell
Software Tools Engineer - SW Environment and Product Configuration
Sony Mobile Communications
From: jenkin...@googlegroups.com [mailto:jenkinsci-dev@googlegroups.com] On Behalf Of swastb
Sent: den 30 oktober 2013 14:19
To: jenkin...@googlegroups.com
Subject: Redirect to a custom page after successful login in jenkins using plugin
Hi all,
Im badly looking for this answer. Is it possible to redirect to a custom page after successful login in jenkins. Im able to write a custom authorization plugin. But after successful authentication there has to be an intermediate page between login page and views. Is it possible to achieve this using plugin?
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/Tr1Ln3VK2g0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.