Service permissions problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Service permissions problem

John Martin
I've created a facade service that in turn calls a few other services.
 The problem I am having is that one of the services requires an
account with the proper permissions which the user invoking the facade
service doesn't.

I have populated the context with username/password of an authorized
account which works but I didn't know if this is the best practice.
It isn't my first choice since I then have to store the
username/password in a properties file to reference. Is there a better
way of doing this?

Thanks,

John
Reply | Threaded
Open this post in threaded view
|

Re: Service permissions problem

David E Jones-2

This sort of thing is what the "system" account is intended for.

Either way, when doing something like this you should just look up  
the UserLogin from the db and pass that in instead of passing in the  
username/password.

-David


On Oct 27, 2006, at 8:58 AM, John Martin wrote:

> I've created a facade service that in turn calls a few other services.
> The problem I am having is that one of the services requires an
> account with the proper permissions which the user invoking the facade
> service doesn't.
>
> I have populated the context with username/password of an authorized
> account which works but I didn't know if this is the best practice.
> It isn't my first choice since I then have to store the
> username/password in a properties file to reference. Is there a better
> way of doing this?
>
> Thanks,
>
> John