.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

Basic Authentication with Non IIS Server

Posted By:      Posted Date: October 20, 2010    Points: 0   Category :WCF
 

Can someone tell me if  ASP.NET is meant to authenticate against non-IIS servers? I am trying to authenticate via WCF REST v2

Basic authentication is an RFC standard but it seems to me that ASP.NET only performs authentication against IIS.
When I try to authenticate against tomcat server, it fails. My research seems to indicate that ASP.NET only perform basic auth against IIS.
I want to conenct to a java based server using Basic Auth and then pull data from it.

Can someone shed some light on this?

Thanks




View Complete Post


More Related Resource Links

The authentication header received from the server was 'Basic realm="DBI"': Need clarification

  

Hi,

I am trying to build my 1st WCF service to consume an external web service(possibly non WCF). The endpoint is https://xxx.xxx.com/ACPXxxxx/ACPXxxxxxWebService

I tried svcutil tool to auto generate the proxy and config file using the wsdl file. Now I have the config file with "BasicHttpBinding" . I have made minor additions like security mode,client credentials(according to wsdl). When I try to execute the app, it fails and I get the following error message:

The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Basic realm="DBI"'.

I have tried various types of binding as well. I get the same error. I would appreciate if I could get any leads on this.

 

Thanks!!!


.NET Basic Authentication - Non IIS Server

  

Can someone tell me if  ASP.NET is meant to authenticate against non-IIS servers?

Basic authentication is an RFC standard but it seems to me that ASP.NET only performs authentication against IIS.
When I try to authenticate against tomcat server, it fails. My research seems to indicate that ASP.NET only perform basic auth against IIS.
I want to conenct to a java based server using Basic Auth and then pull data from it.

Can someone shed some light on this?

Thanks


Basic Instincts: Server-Side Generation of Word 2007 Docs

  

This month, Office Open XML, which allows ASP.NET and SharePoint developers to read, write, and generate Word, Excel, and PowerPoint documents on the server without running an Office desktop application there.

Ted Pattison

MSDN Magazine November 2006


Looking for a simple Service and Console Client REST sample implementing BASIC authentication

  

Does anyone know of a C# code sample demonstrating WCF REST services and console test client with OperationContracts (GET and POST) implementing mutiple paramaters using BASIC authentication? Also, perhaps, using Fiddler as a test client as well? I have searched high and low for something like this, but have not had any success.


Need help with basic coding of the SQL server database.

  
USE   KudlerFineFoods Insert   Into Employees (Emp_ID, Last_Name, First_Name, Address, City, State, Telephone_area_code, Telephone_number , EEO_1_Classification, Hire_date, Salary, Gender, Age, JobTitle) Values   (1, Edelman, Glenn, 175 Bishops_Lane, LaJolla, CA,619,5550199, Sales_Worker, 10/07/2003, $10.75, M, 64, Cashier); So what is wrong the server has a problem with Bishops_Lane,?

how do I uninstall "Management Tools - Basic in SQL Server 2008 R2 (Express)

  
how do I uninstall "Management Tools - Basic in SQL Server 2008 R2?  The regular remove program does not have this option highlighted.    I am trying use some of the advance option and learn something more and now ssms is useless.         the discovery report tells me these are installed but I have no way of uninstalling.  .  I want to replace this with my developer edition that I purchased but have lots of trouble installing because of the express version.  Please help.  I'd really appreciate it. " Sql Server 2008     Management Tools - Basic 1033 Express Edition 10.50.1092.20 No Sql Server 2008     Client Tools Connectivity 1033 Express Edition 10.1.2531.0 No Sql Server 2008     Client Tools Backwards Compatibility 1033 Express Edition 10.1.2531.0 No Sql Server 2008     Client Tools SDK 1033 Express Edition 10.1.2531.0 No "

aspnet_regsql and using SQL server authentication

  
If Windows authentication is used in ASP.NET SQL Server Setup Wizard, database names can be retrieved, but if SQL Server authentication is used, the following error occurs:Failed to query a list of database names from the SQL server. Invalid object name 'sysdatabase'.In case you suspect the user name and passowrd are the fault, they are used in many other connections that are able to retrieve the list of database names. They can be used to continue the wizard to create a database. Could anyone shed some light on this?

MOSS Site with Basic Authentication and variations does not work on one node

  
Hi, We have one MOSS Farm with two nodes, on this we have several sites. For one specific site we have Basic Authentication and variations enabled in it, on one node site works fine. When we browse it pops-up for credentials and once credentials are provided it works fine and properly redirect to source variation home page. But on the other node when we browse the site it pops-up asking for credentials then after providing correct credentials it again asks for credentials twice and then it throws the following error : Access denied.   You do not have permission to perform this action or access this resource. And if we directly put the source site homepage url it throws following error: 401 UNAUTHORIZED We have checked the Alternate Access Mappings for the site and it is perfectly fine, if i enable windows authentication on the defected node the site works fine. This issue is just like pain in the neck still no resolution, please help us to resolve this issue. Regards, Jasjeet Singh

Basic Authentication => http://MainSiteUsername@MainSitePassword@sitename.com

  
Hi,We have an Main asp.net site and Help site which is a plain html protected by 'Basic Authentication'.The requirement is once you already login on the Main asp.net site,  there is a link "Help" which is calling http://MainSiteUsername@MainSitePassword@companyhelp.com this was working well till this KB834489 came in.Can you help us solve this issue? Same issue with this one:http://www.bigresource.com/Tracker/Track-asp-D5uQcKze/Hope someone could help me on this.br,Chris

How to impersonate a connection to SQL server under IIS app pool account if Windows Authentication i

  
I have a requirement I should connect to MS SQL server under IIS Application pool account from ASP.NET application where Windows Authentication is enabled. I cannot use user name and password in connection string. ASP.NET application should use Entity Framework 4.0 to work with data. Any ideas how to do it?    

ODBC connection to SQL Server 2005 Standard (on windows xp) with Windows authentication does NOT wor

  
I reviewed lots of postings, still could not find an answer. If I choose Windows authentication: - with TCP/IP and "Dynamically determine port" checked, I get the following error "The user is not associated with a trusted SQL Server connection; - with Named Pipes, Server Name & Pipe Name as "VSAXAONG", I get two errors, one after the other on the same pop-up:       Connection failed  SQL State 01000  SQL Server Error 1385 [Microsoft] [ODBC SQL Server Driver] [Named Pipes] ConnectionOpen (Connect()).       Connection failed  SQL State 08001 SQL Server Error 17 [Microsoft] [ODBC SQL Server Driver] [Named Pipes] SQL Server does not exist or access denied. If I choose SQL Server authentication and fill in the password - the ODBC connection works fine. I have to say that I created two different logins on the server, one for Windows authentication, and one for SQL Server authentication - both for the same Windows user name. I would appreciate any help I can get on this.  Thank you all in advance.

Sesame: Spatial OData on Maps, Service Operations, HTTP Basic Authentication

  
Sesame Data Browser has just been updated to offer the following features for OData feeds: MapsImproved Service operations (FunctionImport) supportHTTP Basic Authentication supportMicrosoft Dallas support Maps Sesame now automatically displays items on a map if spatial information is available in data.This works when latitude and longitude pairs are provided.Here is for example a map of drinking fountains in Vancouver:This comes from DrinkingFountains in http://vancouverdataservice.cloudapp.net/v1/vancouver, which provides latitude/longitude for each fountain. Here is another example, without latitude/longitude this time: This is a map of the customers from the Northwind database, which are located based on their country, postal code, city, and street address. Service operations (FunctionImport) Support for service operations (aka FunctionImports) has been improved. Until now, only functions without parameters were supported. It's now possible to use service operations that take input parameters. Let's take as an example the GetProductsByRating function from http://services.odata.org/OData/OData.svc.This function is attached to Products, as you can see below: A "rating" parameter is expected in order to open the function: After clicking Open, you'll get data as usual:HTTP Basic Authentication New authentication options have been added: HTTP Basic and Dallas (more

WCF Basic Http Binding - Two server requests per method call

  
We have a service that uses BasicHttpBinding/Transport Security/Windows Authentication and is hosted in IIS. I have created a unit-test application in VSTS and whenever we test a WCF method, Fiddler records two calls. 1st call - No authorization token is sent. The WCF service returns a 401 error - Unauthorized: Access is denied. Http headers as sent in the request given below. POST http://localhost/AccountScreen.svc HTTP/1.1 Content-Type: text/xml; charset=utf-8 SOAPAction: "IAccountScreen/RetrieveAccountDetails" Host: localhost Content-Length: 243 Expect: 100-continue Connection: Keep-Alive 2nd call - Authorization token is sent and the WCF service returns the expected response. POST http://localhost/AccountScreen.svc HTTP/1.1 Content-Type: text/xml; charset=utf-8 SOAPAction: "IAccountScreen/RetrieveAccountDetails" Authorization: Negotiate Host: localhost Content-Length: 243 Expect: 100-continue I am not able to figure out why there are two calls made to the server in the first place and what is the significance of the first call. Any thoughts?

Windows 7 (64x), Visual Basic Xpress V10, Sql Server Xpress V8R2 -Deployment results in Attempt to a

  
Hi all, I'm at my wits trying to figure this out.  It's a new 64x computer running Windows 7.  I've installed Sql Server Express V8 R2. The connection string is user instance = true.  And the database is located in a directory off the main directory to which the connection string points to. The error I get when starting up my VB Express 10 app is "An attempt to attach an auto-named database for file ‘C:\datadirectory\data.mdf’ failed. A database with the same name exists, or specified file cannot be opened, or it is located in UNC share. I've attached the database using sql server manager v10, and can see the data. Googling his error, there seems to be a lot of web-aps seeing this as well. I did have a problem after I installed sql server version 8 r2, just trying to create a database.  That was resolved by going through the IIS -configuration. If I can provide any other information, please let me know.  Cheers        

Using Windows Authentication for connecting sql server from web application using froms authenticati

  
Hi Experts, I have one web application which is configured to be use froms authentication. But, I don't want to use SQL Authentication to connect to SQL server, I want to use windows authentication. Can somebody plase give me detailed setps for how to implement this? Thanks for your help in advance. -Chintak. 

Windows 7 (64x), Visual Basic Xpress V10, Sql Server Xpress V8R2 -Deployment results in Attempt to a

  
Hi all, I'm at my wits trying to figure this out.  It's a new 64x computer running Windows 7.  I've installed Sql Server Express V8 R2. The connection string is user instance = true.  And the database is located in a directory off the main directory to which the connection string points to. The error I get when starting up my VB Express 10 app is "An attempt to attach an auto-named database for file ‘C:\datadirectory\data.mdf’ failed. A database with the same name exists, or specified file cannot be opened, or it is located in UNC share. I've attached the database using sql server manager v10, and can see the data. Googling his error, there seems to be a lot of web-aps seeing this as well. I did have a problem after I installed sql server version 8 r2, just trying to create a database.  That was resolved by going through the IIS -configuration. If I can provide any other information, please let me know.  Cheers        

SharePoint - Report Server - Client Certificate authentication

  
Hi,I have a SharePoint site collection which requires client certificates. On the server I have configured Reporting Services in integration mode.I can call reports on other site collections which don't require client certificates but not on the site which does. On the site which requires client certificates the pages fail with the following error message:'An unexpected error occurred while connecting to the report server. Verify that the report server is available and configured for SharePoint integrated mode. --> The request failed with HTTP status 403: forbidden'The error message indicates that SharePoint doesn't call the web service with a client certificate. Does anyone know how I can configure SharePoint to use a client certificate?Any help is greatly appreciated.Adam
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend