473,748 Members | 9,596 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Custom Webdav server authentication and authorization

Hi,

I am developping a custom Webdav server in C#.
The IIS configuration is just an application Website with all verbs
redirected to aspnet_isapi.dl l and the server works as a httpModule.
This server access a virtual filesystem actually located in a database.
The whole thing works fine with a classic windows authentication with the
WindowsAuthenti cation_OnAuthen ticate event mapping domain users to my
application users.

Now, I'd like to enable some sort of authentication/authorization that would
allow me to request credentials from the connecting user to log in my
application.

Following are only opinions and/or precisions, I can be wrong anywhere :
From what I've read, I can use either Forms, Windows or None methods for IIS
auth (passport also but not available there).
I don't think Forms is really an option since this is a Webdav folder and
then can't really mix with regular hhtp requests on the same site or maybe
I'm wrong, but I would prefer something like a regular login box than a whole
system of authentication page.
Using windows authentication would force me to create a windows user for
each user in my application if I don't allow anonymous access, so this is not
a solution.
To me is left Windows auth with anonymous access, or None auth also with
anonymous access.
I am at this point and don't really see where I could do a complete
application managed authentication/authorization.
Aug 2 '06 #1
1 3461
I have actually found an issue that allow me to work with application managed
basic auth using a custom httpModule, however I cannot enable either windows
auth or None auth with basic credentials on the same site configuration.

"Arnaud Martel" wrote:
Hi,

I am developping a custom Webdav server in C#.
The IIS configuration is just an application Website with all verbs
redirected to aspnet_isapi.dl l and the server works as a httpModule.
This server access a virtual filesystem actually located in a database.
The whole thing works fine with a classic windows authentication with the
WindowsAuthenti cation_OnAuthen ticate event mapping domain users to my
application users.

Now, I'd like to enable some sort of authentication/authorization that would
allow me to request credentials from the connecting user to log in my
application.

Following are only opinions and/or precisions, I can be wrong anywhere :
From what I've read, I can use either Forms, Windows or None methods for IIS
auth (passport also but not available there).
I don't think Forms is really an option since this is a Webdav folder and
then can't really mix with regular hhtp requests on the same site or maybe
I'm wrong, but I would prefer something like a regular login box than a whole
system of authentication page.
Using windows authentication would force me to create a windows user for
each user in my application if I don't allow anonymous access, so this is not
a solution.
To me is left Windows auth with anonymous access, or None auth also with
anonymous access.
I am at this point and don't really see where I could do a complete
application managed authentication/authorization.
Aug 4 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4980
by: rbt | last post by:
Has anyone used pure python to upload files to a webdav server over SSL? I have no control over the server. I can access it with all of the various webdav GUIs such as Konqueror, Cadaver, etc. by using a URL like this: webdavs://dav.hostname.com/user_name/uploads My goal is to upload files automatically with a python script. The server requires authentication over SSL which I can do with urllib2 like this:
0
2648
by: C | last post by:
Hi, I have an ASP.Net app. I use <authentication mode="Windows" /> to detect if a user has the rights to access certain pages. If they do not have access they get an error stating Access Denied 401.2 and I have a Custom Error Page for this.
0
1234
by: C | last post by:
Hi, I have an ASP.Net app. I use <authentication mode="Windows" /> to detect if a user has the rights to access certain pages. If they do not have access they get an error stating Access Denied 401.2 and I have a Custom Error Page for this.
7
4869
by: Steve Drake | last post by:
All, I am doing a WEBDAV request and I want to pass the users Credentials to the webdav server, eg some code like : Request.Credentials = CredentialCache.DefaultCredentials; This does not work, as I get AUTH FAIL, but if I pass the user name and password by using :
1
618
by: coollzh | last post by:
I want to remove asp.net default Authentication and Authorization HttpModule handler and add my custom Authentication and Authorization HttpModule. in my custom Authentication HttpModule Handler,i assign Iprincinpal(with some roles) to Current user , but how can i Authorizated the Current request page to the current user just as ASP.NET Authorization behavior really, not using Response.Redirect("login.aspx") or Server.Transfer("login.aspx")
13
5836
by: Patrick.O.Ige | last post by:
How can i get to redirect users if the get error 401.2 to another page? I guess i should be possible to do it in Global.asax? Or are there any better ways around it.. Any better solutions in ASP.NET 2.0? Patrick
1
2436
by: miha.valencic | last post by:
Hi! What are the options for securing remote objects, which are accessible through IIS, when you have an application deployed on the same server, which uses custom Forms authentication? Scenario: Server hosts app a, which is configured as: authentication:Forms, authorization: deny users="?".
0
1583
by: gilly3 | last post by:
I'm coming across all kinds of frustration implementing custom errors in ASP.NET 1.1. First, 401 - Authorization Failed My application uses Windows Integrated Authentication, and restricts access to a single Windows User Group like this (in web.config): <authorization> <allow roles="Domain\UserGroup" />
1
4994
by: Jakob Lithner | last post by:
When I started a new ASP project I was eager to use the login facilities offered in Framework 2.0/VS 2005. I wanted: - A custom principal that could hold my integer UserID from the database - An easy way to classify different pages as either Admin, Member or Public, where login is necessary for Admin and Member but not for Public. My idea was to put the pages in different directories to easily keep my order. - An easy menu system that...
0
9541
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9370
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9321
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9247
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6074
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3312
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.