authentication

Check whether user is logged in or not

I am doing a web-application using PHP for job searching. I have one query; when user is not logged in and wants to apply for the job given by clicking 'apply' button, he redirects to the login page. If the user is logged in when clicking, he should get directly to the application page. I'm not sure how to implement this. I'm confused ...

two login page(employee & employer),Page cant authenticate user(either he is employee Or Employer)

hello , I'm doing web-application for job seeker & i used two login pages one for employee & 2nd for employer, when I give restrict access to jobposed.php page (which is opened only for employer who is loged in)But the problem is employee who is log in can also open this jobposted.php.But what I have to do this page restriction apply for...

Cancelling an HTTP authentication login?

Im working on a site that uses an old school http authentication log in. The problem is if someone reached the log in prompt by mistake and presses the cancel button the log in box disappears and then reappears a total of 3 times before sending the user off to an ugly "authentication required" page. Does anyone know how to tweak the lo...

Spring MVC Custom Authentication

What I am looking to accomplish is a filter (or similar) that would handle the authentication model for my Spring MVC application. My application is also hosted on Google App Engine. The authentication on this application can tend to be very dynamic and the permissions are not something that would fit cleanly into a predefined Role stru...

Access network share using Windows authentication

I constantly trip on this when writing apps for our intranet. Let's say we have a network share called "\\server1\myfolder", and I'm writing an app that needs to read a text file from there. Access to the share is very limited, which is fine. If someone doesn't have access to the folder, the app catches the error and tells the user they...

How do I find out if the current AUTH cookie is "permanent"?

I have a ASP.NET website where after a specific user action, I have to issue a new AUTH cookie almost identical to the one the user already currently has. I'm having trouble finding out whether the current AUTH cookie is supposed to be persisted or not. Any ideas on how to do this? ...

ASP.Net MVC Custom Authentication

I'm looking to create a custom authentication model for my MVC app but I'm not sure where to implement my custom IPrincipal and IIdentity classes. I don't want to do this in the Global.asax on every request as not all the pages in the site will need authentication. So my question is where? Should I be doing this in my custom action filte...

Separately validating username and password during Django authentication

When using the standard authentication module in django, a failed user authentication is ambiguous. Namely, there seems to be no way of distinguishing between the following 2 scenarios: Username was valid, password was invalid Username was invalid I am thinking that I would like to display the appropriate messages to the user in thes...

Check authenticated http requests in HttpModule

Hi, What kind of event and property I can leverage to check whether a http request (client) is pass through ASP.NET authentication? Thanks ...

How should I handle Authorization/Authentication in my Asp.net MVC app?

I am creating an Asp.net MVC application and I'm currently using the built in Authentication/Authorization code that comes with the sample MVC app. For the most part this is working ok and I kinda understand what's going on. What's concerning me though, is that now I kind of have my users stored in two different tables across two datab...

How do I ask for an authenticated url directly with python

I want to get to an authenticated page using urllib2. I'm hoping there's a hack to do it directly. something like: urllib2.urlopen('http://username:pwd@server/page') If not, how do I use authentication? ...

Subversion with ssh for authentication

We have a Subversion server running on Linux. We have used to authenticate user with unencrypted password using passwd from conf folder for the subversion repository. We have tried to change to use ssh authentication. I am not sure how to use ssh to authenticate via subversion. Based on the subversion manual, if i use svn checkout s...

How do I know what's the realm and uri of a site

I want to use python's urllib2 with authentication and I need the realm and uri of a url. How do I get it? thanks ...

CakePHP - Two types of users to authenticate

I would like to have two different registrations/logins in the same application. One for companies and one for employees because registering a company requires different information than registering an employee. Is it possible to use the auth component to achieve two different registrations/logins? ...

OAuth for Internal Twitter Feeds

Still trying to wrap my noggin around OAuth, but I have a question. I have some twitter accounts that are solely for internal use, build server output, etc. and I have some little bash and python scripts that let me publish updates from jobs and stuff. For this type of use case, does OAuth make sense? I ask because part of the OAuth pr...

CakePHP: model-based permissions?

Struggling with a decision on how best to handle Client-level authentication with the following model hierarchy: Client -> Store -> Product (Staff, EquipmentItem, etc.) ...where Client hasMany Stores, Store hasMany Products(hasMany Staff, hasMany EquipmentItem, etc.) I've set up a HABTM relationship between User and Client, which is s...

prepopulating admin user in database with authlogic rails plugin

I've been using the Authlogic rails plugin. Really all I am using it for is to have one admin user who can edit the site. It's not a site where people sign up accounts. I'm going to end up making the create user method restricted by an already logged in user, but of course, when I clear the DB I can't create a user, so I have to prepopul...

JBoss Authentication Question(s)

I have a three-part question related to JBoss 5 Authentication (in the Web/EJB containers): Is there a way to propogate an identity other than the username that was specified during login? For example, using the DatabaseServerLoginModule, I want to authenticate the user with a username/password but return the user's id, and not usernam...

How to use Python to log into Facebook/Myspace and crawl the content?

Right now, I can crawl regular pages using urllib2. request = urllib2.Request('http://stackoverflow.com') request.add_header('User-Agent',random.choice(agents)) response = urllib2.urlopen(request) htmlSource = response.read() print htmlSource However...I would like to simulate a POST (or fake sessions)? so that I can go into Facebook ...

ASP.NET: directing user to login page, after login send user back to page requested originally?

Hi, I am trying to manually implement a login system in ASP.NET 3.5. Basically, on load, I would like the site to check and see if user object is active, if not, than I want the login page to appear. After user has logged in successfully, I would like the user to be able to access the same page he has requested originally. for example...