authentication

How to stub data for PHPUnit with plugin using Zend_Auth that redirects on failed authentication

I'm still a newb to phpunit so I hope to be explaining this correctly. I'm trying to run a controller test with PHPUnit, however the plugin that is using Zend_Auth is redirecting back to the login. How do I create the stub data? I tried placing it in my setUp but Zend_Auth appears to be reinstantiated after setUp. Thanks for any help ...

Authenticate a WinForms WebBrowser control to an ASP.Net website using Forms mode authentication

We are accessing an ASP.Net web site from a WinForms application via the System.Windows.Forms.WebBrowser object. The web site is configured to use "Forms" mode authentication. On the website, we are currently using the AccountMembershipService and FormsAuthenticationService that is included in the .Net MVC 2 template. I would like to be...

How to create "remember me checkbox" using Codeigniter session library?

Hello in Codeigniter I am building an Authentication system for my web site and to achieve that I use session library session->set_userdata('username') this will save the session -I believe- for some time I want to provide a "remember me" checkbox in the login form so the user can save the session forever - could not find a way...

Rails authentication gift list for each user?

Hi Everyone, I am trying to get to grips with the basics of authentication in Rails. To start with I have used the nifty_authentication generator by Ryan Bates. It's helping me learn the basic options for user logins etc. I have a simple application the has a person and gift table in the database. The idea is, each user creates a list...

Link social networks to website account/registration

I would like for users to login to my website using a verification with their social network. But along with verifying their login, I need them to also select a username, avatar, PayPal and various other custom options that need to be stored in my database. Is there a way to display a typical registration, (without password field) and t...

org.apache.http.auth Problem

Hi, I used org.apache.http.auth and develop demo code samples like this: DefaultHttpClient httpclient = new DefaultHttpClient(); httpclient.getCredentialsProvider().setCredentials( new AuthScope("www.yemeksepeti.com", 80), new UsernamePasswordCredentials("*******", "*******")); BasicHttpContex...

One set of code, two authentication schemes Forms Auth + Windows Auth: The lesser of evils

We have an application that is currently required to be accessed using two authentication schemes, Forms Auth and Active Directory or NTLM / Windows Auth. The way the application is now, there are two IIS sites pointing to different folders with the same set of files, everything identical except the web.config. Before anyone flames me ...

Authorization problem (HttpConnection) on android!!

"Basic YWRtaW46YW RtaW4=" is right code for my address.I check on j2me project. And on android my getbase64 method returns "Basic YWRtaW46YW RtaW4=" its true. and ı use it on: httpConnection.setRequestProperty("Authorization",getBase64Encode()); ==> "Basic "+Base64.Decode(name:pass); Finally responce code is 401 any idea??? ...

Why really short timeout in ASP.NET MVC?

I have an MVC 2 application where the timeout is set to 2880 (minutes as I understand it, but even if it is seconds there's a problem): <authentication mode="Forms"> <forms loginUrl="~/Account/LogOn" timeout="2880" /> </authentication> Now this should then mean 48 hours, or at least 48 minutes (if the value is seconds). But the user...

why I am geting this error: System.Runtime.interopservice.ComException on windows Authentication.

I am using Windows Authentication in asp.net every thing is ok in local but when deploying on different system of same domain then its working getting error in this line SearchResult userObject = adSearcher.FindOne(); Error system.runtime.interopservice.comException My code is WindowsIdentity winId = id as WindowsIdentity; if...

How to enable CIFS in Alfresco on Windows (dialog pops, credentials not accepted)

I'm trying to make it possible to access/upload documents to Alfresco using shared drive, i.e. CIFS. The server runs on Windows. I'm able to ping the server like ping themachine-a, so I guess the CIFS is up and running in Alfresco. But I'm unable to sign-in at \alfrescomachine\; the dialog window appears but no credentials are 'good eno...

How to login to SQL Server 2005 Express Management Studio?

Hello I've just installed SQL Server 2005 Express and I'm trying to login to Management Studio but I don't know what the "Server Name" is to be able to login. I've tried: localhost\SQLEXPRESS 127.0.0.1\SQLEXPRESS SQLEXPRESS <computer name>\SQLEXPRESS <username>\SQLEXPRESS The authentication mode is Windows Authentication. The error...

Java applet certificate on Mac

Hello One of site's I visit has Java Applet, which must use certificate based authentication. I got this cert and added it to Java's key store(cacert) as well as to key chain of Mac. When applet starts it offers to choose certificate for authentication from list - but this list is empty. Does anybody know about this issue in Mac Os an...

How can I use devise's "warden" to authenticate a rack app in the same stack as the rails app that uses devise ?

By the way, I'm using rails 3. How can I use devise's "warden" to authenticate a rack app in the same stack as the rails app that uses devise ? My problem is that when I call this: request.env['warden'] # nil :( from the other application on the rack stack I get nil ! I integrated dav4rack (webdav) in my rails app via config.ru. I ...

CSV files downloads (opened in Excel) prompt for Windows User Authentication

I have a site using a self-signed cert (which prompts for "trust this site and continue"), and in IE, occasionally when the user attempts to download a CSV file (which is handled by writing the file to the file system and sending a redirect header), the user can be prompted with the Windows authentication screen for username/password. T...

Getting APEX session in external web page

Hello! I want to use APEX authentication in my web page. I have created some APEX application which has only 2 pages. First contains only login region, second page is redirected to another page (stored procedure in ORACLE - usage of embedded gateway) before it reaches the header (Apex Branch). How can I now check valid APEX session? I t...

Configuring an additonal sub login area with ASP.NET membership?

Hi, I have a main login for my client facing website configured with ASP.NET membership. I also have a secondary login for my admin backoffice called /admin with a login page /admin/login.aspx upon logging in it should direct to: /admin/secure/ I've placed a web.config file in /admin/secure/ as follows <?xml version="1.0"?> <config...

PHP $_SESSION Implementation

Does anyone know how PHP maps session IDs to $_SESSION arrays? In other words, given session ID x, where does PHP pull the values from to populate the $_SESSION array? And given a session ID and the url it came from, is there any possibility of someone being able to gain access to the values in the $_SESSION array? ...

Demystifying Web Authentication

I'm currently researching user authentication protocols for a website I'm developing. I would like to create an authentication cookie so users can stay logged in between pages. Here is my first bash: cookie = user_id|expiry_date|HMAC(user_id|expiry_date, k) Where k is HMAC(user_id|expiry_date, sk) and sk is a 256 bit key only known ...

Validate email with database

I have created a form and have validated everything using PHP, but can't figure out how to validate email from database. If I have the entered username in the database, I want it to display an error. I have connect.php and just for an example - here's how i validate password - if(!empty($_POST['password'])) { if($_POST['password'] !...