[ 
https://wso2.org/jira/browse/MASHUP-800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17210#action_17210
 ] 

Jonathan Marsh commented on MASHUP-800:
---------------------------------------

I wonder if we could use the session object instead?  "request" scoped session 
sounds like just the right place to me.  I assume one can switch scopes 
dynamically in a mashup - e.g. store something in "application" session without 
the ability to store something else in "request" session?

  this.scope="request"; // if not already set so.
  var user = session.authenticatedUser;

Or even

  var user = session.get("authenticatedUser");

though that's both tricky and could lead to naming conflicts.

> Consider adding a way to get the username of the authenticated user for use 
> within a mashup
> -------------------------------------------------------------------------------------------
>
>                 Key: MASHUP-800
>                 URL: https://wso2.org/jira/browse/MASHUP-800
>             Project: WSO2 Mashup Server
>          Issue Type: Improvement
>            Reporter: Jonathan Marsh
>            Assignee: Keith Godwin Chapman
>
> This would be very useful for things like saving per-user preferences or 
> customizing returns to a particular user.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to