auth
2014-08-16
Parent:9fe684b33b3d
auth/config.go
Redirect after login. After a successful login, redirect based on a query parameter. Only allow redirections to the domain listed in the config and its subdomains. If no redirect is specified, redirect to the root of the domain listed in the config.
1.1 --- a/config.go Sat Aug 16 20:06:30 2014 -0400 1.2 +++ b/config.go Sat Aug 16 20:34:56 2014 -0400 1.3 @@ -59,8 +59,9 @@ 1.4 // The base path of documentation 1.5 DocumentationDomain string 1.6 1.7 - SessionLength time.Duration 1.8 - RequestIPHeader string 1.9 + SessionLength time.Duration 1.10 + RequestIPHeader string 1.11 + LoginRedirectDomain string 1.12 } 1.13 1.14 // NewServerConfig returns a new ServerConfig with default configuration