From 930be9338b6f600e0b142443b39a084d75e486dd Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Thu, 7 Aug 2008 12:41:12 +0000 Subject: [PATCH] Added info on default target options when using form-login --- src/docbkx/namespace-config.xml | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/src/docbkx/namespace-config.xml b/src/docbkx/namespace-config.xml index 9c9aa6cb63..aeadf3dcf2 100644 --- a/src/docbkx/namespace-config.xml +++ b/src/docbkx/namespace-config.xml @@ -256,7 +256,7 @@ to log in, since we made no mention of any HTML files or JSPs. In fact, since we didn't explicitly set a URL for the login page, Spring Security generates one automatically, based on the features that are enabled and using standard values for the URL which processes the submitted login, - the default target URL the user will be sent to ad so on. However, the namespace offers plenty of + the default target URL the user will be sent to and so on. However, the namespace offers plenty of suppport to allow you to customize these options. For example, if you want to supply your own login page, you could use: +
+ Setting a Default Post-Login Destination + + If a form login isn't prompted by an attempt to access a protected resource, the default-target-url + option comes into play. This is the URL the user will be taken to after logging in, and defaults to "/". You can + also configure things so that they user always ends up at this page (regardless of whether + the login was "on-demand" or they explicitly chose to log in) by setting the + always-use-default-target attribute to "true". This is useful if your application always + requires that the user starts at a "home" page, for example: + + + + + + ]]> + + +
@@ -311,7 +330,7 @@ - + ]]> @@ -424,10 +443,10 @@
OpenID Login - The namespace supports OpenID login eiter instead of, or in addition to + The namespace supports OpenID login either instead of, or in addition to normal form-based login, with a simple change: +