Select to view content in your preferred language

How to call my arcgis services using a username/password from XAML or code behind

2349
3
08-16-2010 06:20 AM
MichaelBlom
Deactivated User
Hello,

I've got a tricky one.

My site's web.config file uses windows authentication and then AspnetDbRoleProvider roleManager database to check that user's permissions to see what services their role can view (roles and their accompanying services are described in another config file).

I want to then be able to set up my Arcgis services with only one service account having permissions.

The question is, when I'm initializing the services (in my Xaml) how do I make sure the call to them is made with this one service account?  I can't use impersonate via the web config because I need to use the user's windows credentials to with ghe rolemanager database. 

What I need is a way to pass some credentials to the ArcGIS service when I call it.  Is this possible?

Thanks in advance,
Mike
0 Kudos
3 Replies
MichaelBlom
Deactivated User
Okay,  I'm thinking that if I can run my site under an application pool, and set the username/password there, then all requests to my services will run through that, and it shouldn't affect the initial windows authentication of the user against the web server (fingers crossed)

BTW, is there a way to mark your own issues as resolved?  This would be good.
Also, if I want to change how i'm subscribing to a thread, I have to first unsubscribe, then subscribe again before I am able to set/change to email notification.

Mike
0 Kudos
JenniferNery
Esri Regular Contributor
For forum usage questions, you can refer to this link: http://forums.arcgis.com/faq.php?faq=vb3_board_faq#faq_vb3_board_usage

I have actually not marked any posts as "resolved" or have started a thread so I don't know how to answer that question but this FAQ page might be useful. As far as notifications go, I think going to your Settings page, you can check/uncheck notifications box.
0 Kudos
dotMorten_esri
Esri Notable Contributor
Hello,

What I need is a way to pass some credentials to the ArcGIS service when I call it. Is this possible?



ArcGIS Server uses Tokens to do this. Basically you use the Token service to generate either a long-lived or short-lived token, and you set the generated token you get on the Token property on your ArcGIS Layers.
0 Kudos