I do this in a subrequest on which I set the remote_user to an internal 
user which is given admin privileges. (I combine the 
RemoteUserAuthenticationPolicy with my other authentication policies using 
pyramid_multiauth.)

https://github.com/ENCODE-DCC/encoded/blob/b84ef781ed6068eab96c9e06983b770ca8e11154/src/encoded/embedding.py

The null_renderer used is 
here: 
https://github.com/ENCODE-DCC/encoded/blob/b84ef781ed6068eab96c9e06983b770ca8e11154/src/encoded/renderers.py#L106

Laurence

On Tuesday, 24 March 2015 16:28:07 UTC-7, kris wrote:
>
>
> Is there a way to change the identity or add/delete groups during a 
> request?
>
> It seems that you cannot change the requests  authenticated_userid or 
> effective_principals during the request.
>
> I have some code that needs admin priviledges briefly during the request 
> processing..
>
>
> Thanks,
> Kris
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to