authentication

setUserCredentials from Google data api is stuck

Well, since I am facing some issues with OAuth implementation, I decided to go back to normal method where users will input their login id and password and I will use them in my code to validate their google account to fetch calendar information. So when user enters login id and password, the page is getting stuck. When I check the code,...

how to auto log onto form authentication from desktop app

I have an asp website that uses form authentication to protect certain resources. I am developing a desktop winform application that accesses the protected resource. How do I take id and password from user on the desktop app and pass it to the site? I initially thought WebRequest.Credentials can be used to achieve this but I was wrong. ...

Authentication settings in IIS Manager versus web.config versus system.serviceModel

I have a WCF web service, and I want to use Basic authentication. I am getting lost in the authentication options: In IIS 6 Manager, I can go in to the properties of the web site and set authentication options. In the web site's web.config file, under system.web, there is an <authentication mode="Windows"/> tag In the web site's web.co...

mobile browsers' can't login to my site

i've tested my site on 2 phone models using the 'generic' browser that came with the phone, but sadly, everytime I tried to login, it will return me back to my index page. here's my login code <form name='login' method='POST' action='authentication.php'> <table border=0 cellpadding=2> <tr><td>Login:</td><td></td></tr> <tr><td>E-ma...

How to use authentication cookie from WCF Authentication Service in an ASP.Net MVC application

Okay, I've had little luck finding any documentation or tutorials for my specific scenario. I have an ASP.Net MVC web application that will be using WCF services for everything including authentication and roles (via membership providers on the WCF backend). I've had no problem setting up the authentication services but it does not se...

Windows Phone 7 Application + WCF + SSL + Username Authentication

Hello, I have developed a test service with WCF, which I try to consume from a Windows Phone 7 Application, however when calling a method from the service I get a weird exception: There was no endpoint listening at https://server/Service.svc that could accept the message. This is often caused by an incorrect address or SOAP ...

AspNetMembership provider with WCF service

I'm trying to configure AspNetMembershipProvider to be used for authenticating in my WCF service that is using basicHttpBinding. I have following configuration: <system.serviceModel> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" /> <bindings> <basicHttpBinding> <binding name="basicSecureBinding"> <se...

Security for web services only used from a Silverlight application?

I have googled a bit for how I should handle security in a web service application when the application is basically the data repository for a Silverlight application, but have gotten inconclusive results. The Silverlight application is not supposed to have its own user authentication, since it will be reachable only through a web appli...

Problem with AuthzSVNAccessFile

I have installed Apache and Subversion on Windows. My config is: <Location /svn> DAV svn SVNListParentPath on SVNParentPath "d:\svn" AuthzSVNAccessFile "d:\svn\svnaccess.conf" AuthType Basic AuthName "Subversion repository" AuthUserFile "D:\svn\svn-auth-file" Require valid-user </Location> and my svnac...

Interfacing my application with existing authentication systems

I'm writing a web based application that will have its own authorization/authentication mechanism (traditional cookie/session based user/pass). However, depending on the organization that licenses the software, I want them to be able to plug in their own existing internal authentication system as a way to replace mine. Ideally, they'd ha...

Python SOAP web-service client access through authenticated proxy, How?

Hi, I've been trying to write a Python client to access a SOAP webservice through our companys authenticated proxy server using the SUDS lib. The proxy uses basic username:password authentication not NTLM and I have been able to get basic downloads working through it using URLLIB2 like this: passmanager = urllib2.HTTPPasswordMgrWithDef...

RedirectFromLogin in Silverlight Login Page

I am busy writing a login page in Silverlight. I am using an Authentication Service that processes the logins and I am also creating a custom Membership and Roles providers. Everything is working but I need some assistance. I would like some advice on how to redirect the user to page they came from before they were pushed to the Login ...

Rails serving files per user

Hey. In my rails application each client has a file. This file must not be accessible to public, only to the user (authenticated user). How would you implement this functionality? ...

What is best way to update digital certificates from server to many clients when certificate expires?

One of my friend is working on issue related to updating expired digital certificates. He is working on Java application(Swings I guess), which has 4000 clients. All those need a digital certificate to connect to the application and this certificate expires every year. At the end of year he needs to update the certificate credentials fo...

Help with Authentication ASP.Net Service loses Login

I have been making use of the WCF Authentication Service in ASP.Net but I have found that whenever you navigate all session, user, login data is lost. I have tested using the Standard ASP.Net Login page and mechanism and everything works fine... Why is nothing persisting from one page to another? ...

How to determine user DN after authentication against an Active Directory?

I'm using DirectoryServices to authenticate a user against an ADLDS (the lighteweight Active Directory). After I pass authentication. How can I determine the DN or SID of the currently logged in user? using (DirectoryEntry entry = new DirectoryEntry(<a>LDAP://XYZ:389</a>, userName.ToString(), password.ToString(), AuthenticationTypes.Sec...

Force active directory update through c#

I am using the following code to authenticate a user using Active Directory. But when I disable a user from AD, the change is not immediately reflected and the authentication still succeeds for some time after the disable. Can I force active directory updates through code? Thanks DirectoryEntry entry = null; try { entry = new Direct...

SSL Authentication with Certificates: Should the Certificates have a hostname?

Quick Version of Question Gmail, TD (Canadian Bank), Royal Bank (Canadian Bank) all use ssl. When you inspect their certificates they all have Common Name (CN) mail.google.com Or more generally: Common Name (CN) <url> Is this needed to prevent man in the middle attacks? Summary JBoss allows clients and servers to authent...

How add service reference in visual studio 2008 authenticating against password-protected web service

Hello, first time here... great site Well, I want to reference a web service, and it requires user/pass authentication. In VS 2008, if I try to "add reference", or "add service reference", all I can type is the URL, there's no way to input my credentials. Obviously, if I try to load the ws, it shows me a nice message: "The request faile...

What are the difference in simple and OAuth autentication in Tweeter for?

I was checking out the Tweet# API, and notice that there are 2 ways to authenticate. .AuthenticateAs(TWITTER_USERNAME, TWITTER_PASSWORD) and .AuthenticateWith(OAUTH_CONSUMER_KEY, OAUTH_CONSUMER_SECRET, OAUTH_TOKEN, OAUTH_TOKEN_SECRET) if I just want to post as mess...