Changeset 10408
- Timestamp:
- 5 Jul 2013, 10:48:59 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.cas/trunk/waeup/cas/server.py
r10405 r10408 49 49 50 50 51 def create_service_ticket(user, service=None ):51 def create_service_ticket(user, service=None, sso=True): 52 52 """Get a service ticket. 53 53 … … 55 55 """ 56 56 t_id = 'ST-' + get_random_string(29) 57 return ServiceTicket(t_id, user, service )57 return ServiceTicket(t_id, user, service, sso) 58 58 59 59 … … 133 133 134 134 135 def login_redirect_service(db, service ):135 def login_redirect_service(db, service, sso=True): 136 136 """Return a response redirecting to a service via HTTP 303 See Other. 137 137 """ 138 138 # safely redirect to service given 139 st = create_service_ticket(service )139 st = create_service_ticket(service, sso) 140 140 db.add(st) 141 141 service = '%s?ticket=%s' % (service, st.ticket) … … 214 214 if tgc: 215 215 if service: 216 return login_redirect_service(self.db, service )216 return login_redirect_service(self.db, service, sso=True) 217 217 else: 218 218 return login_success_no_service( … … 228 228 else: 229 229 # safely redirect to service given 230 return login_redirect_service(self.db, service )230 return login_redirect_service(self.db, service, sso=False) 231 231 else: 232 232 # login failed
Note: See TracChangeset for help on using the changeset viewer.