Ignore:
Timestamp:
15/05/12 14:22:59 (9 years ago)
Author:
rwilkinson
Message:

Use logged in username returned by repoze.who login for setting client authorisations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ndg_oauth/ndg_oauth_server/ndg/oauth/server/wsgi/authentication_filter.py

    r8057 r8060  
    200200            (identity, headers) = repoze_who_api.login(credentials) 
    201201            if identity is not None: 
    202                 log.debug("Logged in as %r", identity) 
     202                logged_in_username = identity['repoze.who.userid'] 
     203                log.debug("Logged in using username %s as %s", username, 
     204                          logged_in_username) 
    203205     
    204206                if self.combined_authorization: 
    205                     self._set_client_authorization(req, session, username) 
     207                    self._set_client_authorization(req, session, 
     208                                                   logged_in_username) 
    206209                return_url = req.params.get(self.return_url_param) 
    207210                return self._redirect(return_url, start_response, headers) 
Note: See TracChangeset for help on using the changeset viewer.