Adding a user dynamically in Web services ?

R

Raghu Raman

I've created a web service which runs thru web referrences and returns
a dataset to the Web forms.It gets the conn.string & qry as parameters
and produces the dataset.

I want to restrict the users accessing the web service & i can do that
in web.config file , if i know the users while creating the web service.

Is it possiable to restrict the users accessing the web service (after
it is running as dll) from the web forms with out altering the web
service physically.


With thanks in advance
Raghuraman
 
S

Saurabh Nandu

If you are using Windows Authentication then you can just modify the web.config file to state that you need Windows Credentials for users accessing the web service.
This can be done without a recompile.

But you will have to modify the consuming client to send accross the valid credentials..

--
Regards,
Saurabh Nandu
AksTech Solutions, reflecting your needs...
[ www.AksTech.com ]
[ www.MasterCSharp.com ]
 
D

Dale

Saving the web.config file can restart your app. This might have unexpected
consequences. You could put the user identies into an application scope
collection upon Session_Start and build custom security handlers that check
for a flag or existence in a collection.

Dale

Saurabh Nandu said:
If you are using Windows Authentication then you can just modify the
web.config file to state that you need Windows Credentials for users
accessing the web service.
This can be done without a recompile.

But you will have to modify the consuming client to send accross the valid credentials..

--
Regards,
Saurabh Nandu
AksTech Solutions, reflecting your needs...
[ www.AksTech.com ]
[ www.MasterCSharp.com ]



Raghu Raman said:
I've created a web service which runs thru web referrences and returns
a dataset to the Web forms.It gets the conn.string & qry as parameters
and produces the dataset.

I want to restrict the users accessing the web service & i can do that
in web.config file , if i know the users while creating the web service.

Is it possiable to restrict the users accessing the web service (after
it is running as dll) from the web forms with out altering the web
service physically.


With thanks in advance
Raghuraman
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top