Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #240 (closed enhancement: fixed)

Opened 14 years ago

Last modified 9 years ago

Allow the identity model to forward to a URL

Reported by: anonymous Owned by: jeff
Priority: normal Milestone: 1.0.4.4
Component: Identity Version:
Severity: normal Keywords:
Cc:

Description

This is to support single sign on systems. We have a SSO and I would like to integrate with it.

Thanks

Change History

comment:1 Changed 14 years ago by anonymous

Quickie hack to do this. If the redirect path starts with http:, treat it as an external redirect.

Thanks Alvin

in startup.py def mapPathToObject(path):

from cherrypy.lib import httptools """Filter out server.webpath from request path. Temporary replacement for VirtualPathFilter? until CP 2.2. """ if path.startswith("http:"):

return httptools.redirect(path)

comment:2 Changed 14 years ago by Jeff Watkins

  • Owner changed from anonymous to Jeff Watkins
  • Milestone set to 0.9

It's kind of a shame that CherryPy? doesn't facilitate this already, but it wouldn't be hard to check whether the URL begins with HTTP or HTTPS and use an HTTPRedirect instead of an InternalRedirect?.

comment:3 Changed 13 years ago by kevin

I think the reason there are two different kinds of redirect is that if you say "/foo" you don't know if you want an internal redirect or an external one.

comment:4 Changed 13 years ago by jeff

  • Owner changed from Jeff Watkins to jeff
  • Status changed from new to assigned

OK, I'm ready to implement this but I can't tell from the description whether the redirect is for the /login URL or the post login URL.

Basically, do you want to redirect to an URL when login is required or after login is completed?

comment:5 Changed 13 years ago by jorge.vargas

  • Milestone changed from 0.9 to 1.1

comment:6 Changed 12 years ago by alberto

  • Milestone changed from 1.1 to __unclassified__

Batch moved into unclassified from 1.1 to properly track progress on the later

comment:7 Changed 11 years ago by Chris Arndt

  • Status changed from assigned to closed
  • Resolution set to fixed

This is supported since TurboGears release 1.0.4.3

comment:8 Changed 9 years ago by chrisz

  • Milestone changed from __unclassified__ to 1.0.4.4
Note: See TracTickets for help on using tickets.