authentication

Websphere 6.1 ejb3 authenticating user and mapping to role

I'm upgrading an application from an old ejb2 setup to use ejb3's using the ejb3 feature pack on websphere 6.1 I've got a ServletContextListener which does some initialisation when the servlet context starts, part of this initialisation involves calling ejb's. The server is set up to use FileRegistrySample for its custom user registry,...

Storing password in tables and Digest authentication

The subject of how to store web site users passwords in tables has come up several times on SO and the general advice is to store a hash of the password, eventually an HMAC hash. This works fine for Basic authentication or for forms based authentication (really the same thing). My problem is that I must provide also Digest authentication...

Facebook API without client authentication for public content

I'm developing a site for a client who already have the photos of his products on Facebook, and he wants the same albums to be replicated over his site. I was already using Facebook Connect, so I dropped a combination of photos.getAlbums and photos.get to dynamically make the galleries. So far so good, but then I realized that if there'...

ASP.NET/IIS: Windows Authentication, setting max attempts and redirecting

We have an internal web app running on IIS6 and we use the integrated windows authentication for domain users to login to the app before they can use it. What we would like to do is redirect the user to an error page if they fail to login to the domain 3 times. Where should i be looking to configure this? My first thought was in IIS, ...

Temporary permission to view photos and albums

I'm making a gallery website. Photos and albums should be hidden from the public by default, but the owner can share a public URL if he wants. I also want to use short URLs for this. I'm trying to figure out the best way to do this. At first I thought I could have a MySQL table with the short URL code (something like Zneg8rjK), and the...

Why are my ASP.NET pages returning `200 OK` without any authentication headers being sent?

Note: This question has broadened in scope from previous revisions. I have tried to simplify the issue so it can be easily reproduced by anyone. Using Fiddler, I can replay an arbitrary request to my default page after erasing my Authorization header from the HTTP request, and I am able to get a response of 200 OK with valid data. ...

Removing Windows Logon screen through a service

I am trying to remove the windows logon screen (winlogon) from an executable launched from a service. The service would start automatically with windows and wait for commands from another computer. When it receives a command, it will launch an exe which will start cmd.exe under a particular username. The service is already present. I ha...

How do you write code for ID/password info get from CSV and login process?

I thought that I should use JSON for ID/pass storing format once, but I reserched about it, then I finally found that JSON is too difiicult to me, so now I am considering to use CSV. The CSV file would be like this. File name is id.csv. aaa_id,aaa_pass bbb_id,bbb_pass ccc_id,ccc_pass Left colum is id, and right colum is password an...

Post using JQuery to ASP.NET MVC [Authenticate]-wrapped action.

Hi, I'm trying to post with JQuery like this: $.post("NiceController/Create/", { field1: data1, field2: data2 }, function(data, textStatus) { if (data.Status) //Do something }, "json"); The problem is, that when I'm not authenticated I don't get redirected, to log-on page, because it's not a full form submit. Question is:...

Authentification and security model in client/server aplications

I'm developing custom client/server application that requires client to log in with their username and password. The user accounts are not related to Windows/AD accounts in any way. After login, client application will request other services from server system. My question is what is the best way to implement this? What kind of archite...

Implementing OpenID: identifying users

Company I work for wants to publish an internal website to the outside world, but also wants to identify the visitors in some easy way. Some functionality will be visible for all visitors but most must be visible for authenticated visitors. (And some functionality is restricted to admin-visitors.) While management is considering to imple...

Record ASP.Net user in IIS logs

I have an ASP.NET 3.5 application (on IIS 6.0) which uses ASP.NET forms authentication. In my IIS logs, I have extended logging turned on including the cs-username field. Even after a user has logged in to my site, the cs-username still displays '-'. Is there a way to get the authenticated ASP.NET user's name to appear in the username f...

One django installation different users per site

How can I have different users for different sites with django. My application should look like this: a.mydomain.com b.otherdomain.com Users should be bound to the domain, so that a.mydomain.com and b.otherdomain.com have different users. ...

pandora website user profile system

Hi guys, does anyone know how Pandora saves user profiles/accounts after a user registers? How does it remember the user - even after the user has cleared cookies and cache. I also found today that if you register with one browser and visit Pandora.com with another browser you are recognized as the registered user. Awesome functiona...

Is 5-digit PIN better than most passwords?

This is something that's been bugging me for many years: why most online services highly value the entropy of a password, citing it as a security measure, and enforcing it when users select a password? I decided to come out with this question after reading the paper "Do Strong Web Passwords Accomplish Anything?" (and, of course, classic...

Custom authentication in google app engine (python)

Does anyone know or know of somewhere I can learn how to create a custom authentication process using python and google app engine? I don't want to use google accounts for authentication and want to be able to create my own users. If not specifically for google app engine, any resource on how to implement authentication using python an...

Is my authentication encryption any good?

So I've been reading a lot about encryption in PHP. So much that I am not sure exactly what's a really good method to securely store login information. However, the following function is what I came up with: function loginHash($username, $password){ $salt = str_split($password,(strlen($password)/2)+1); $hash = hash('whirlpool',...

How to setup Tomcat web.xml and context.xml for 2 different (user and admin) authentication

Here's my situation: I want stuff under mysite/customer/* to require form-based authentication before access (login via mysite/customer/login.jsp, with its own user_password table and role. ) BUT I want stuff under mysite/admin/* to require another form-based authentication before access (login via mysite/admin/login.jsp, with ano...

What is an spnego Token?

Sorry if the spelling is completely wrong. What the heck is one? Why is it preventing me from authenticating via Mozilla? Why would someone force me to use one to authenticate from a command line tool? How is it tied to the back end being implemented in Silverlight? ...

How to log out user from web site using FORM authentication?

I am using FORM authentication, together with Realm. I would like to know how can I log out. The only solution so far is to close browser, but that's not acceptable from the usability standpoint. SOLUTION As pointed by the accepted answer ((HttpServletRequest) request).getSession().invalidate(); ...