How to access user Info in DomainService


hi all

i need access user info in domain services before releasing data domain service security constraint


<requiresauthentication()> _  <enableclientaccess()> _  public class callshopdomainservice      inherits linqtoentitiesdomainservice(of callshopliteentities)        'todo:      ' consider constraining results of query method.  if need additional input can      ' add parameters method or create additional query methods different names.      'to support paging need add ordering 'accounts' query.      public function getaccounts() iqueryable(of account)          return me.objectcontext.accounts.where ("username=" & whatishere.user.name )      end function

please me getting whatishere object name, since must not pass username client, may hack silverlight application or communication , send username user


thanks

a simple options read from your authenticationservice.

  dim myuser = new authenticationservice().getuser() as myuser

kyle



Silverlight  >  WCF RIA Services with Silverlight



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'