Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [authentication]

Authentication is the process of providing a proof of identity or verifying identity.

5511 votes
11 answers
690k views

The definitive guide to form-based website authentication [closed]

Moderator note: This question is not a good fit for our question and answer format with the topicality rules which currently apply for Stack Overflow. We normally use a "historical lock" for ...
47 votes
1 answer
21k views

Reference - Password Validation

Quite often, questions (especially those tagged regex) ask for ways to validate passwords. It seems users typically seek password validation methods that consist of ensuring a password contains ...
467 votes
10 answers
872k views

Use basic authentication with jQuery and Ajax

I am trying to create a basic authentication through the browser, but I can't really get there. If this script won't be here the browser authentication will take over, but I want to tell the browser ...
Patrioticcow's user avatar
  • 26.9k
595 votes
15 answers
580k views

Validate a username and password against Active Directory?

How can I validate a username and password against Active Directory? I simply want to check if a username and password are correct.
user avatar
645 votes
48 answers
1.2m views

Google OAuth 2 authorization - Error: redirect_uri_mismatch

On the website https://code.google.com/apis/console I have registered my application, set up generated Client ID: and Client Secret to my app and tried to log in with Google. Unfortunately, I got the ...
user984621's user avatar
  • 47.7k
796 votes
14 answers
430k views

RESTful Authentication

What does RESTful Authentication mean and how does it work? I can't find a good overview on Google. My only understanding is that you pass the session key (remeberal) in the URL, but this could be ...
Jim Keener's user avatar
  • 9,295
160 votes
4 answers
151k views

Performing user authentication in Java EE / JSF using j_security_check

I'm wondering what the current approach is regarding user authentication for a web application making use of JSF 2.0 (and if any components do exist) and Java EE 6 core mechanisms (login/check ...
ngeek's user avatar
  • 7,833
276 votes
15 answers
325k views

Set cookies for cross origin requests

How to share cookies cross origin? More specifically, how to use the Set-Cookie header in combination with the header Access-Control-Allow-Origin? Here's an explanation of my situation: I am ...
Pim van der Heijden's user avatar
510 votes
2 answers
414k views

How to implement REST token-based authentication with JAX-RS and Jersey

I'm looking for a way to enable token-based authentication in Jersey. I am trying not to use any particular framework. Is that possible? My plan is: A user signs up for my web service, my web service ...
DevOps85's user avatar
  • 6,513
355 votes
26 answers
271k views

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

Is it possible to log out user from a web site if he is using basic authentication? Killing session is not enough, since, once user is authenticated, each request contains login info, so user is ...
Marko's user avatar
  • 31k
1079 votes
18 answers
1.4m views

PostgreSQL error: Fatal: role "username" does not exist

I'm setting up my PostgreSQL 9.1. I can't do anything with PostgreSQL: can't createdb, can't createuser; all operations return the error message Fatal: role h9uest does not exist h9uest is my ...
h9uest's user avatar
  • 11.4k
97 votes
16 answers
102k views

PHP Sessions across sub domains

I am trying to set up the following: auth.example.com sub1.example.com sub2.example.com If the user visits sub1.example.com or sub2.example.com and they are not logged in, they get redirected over ...
dragonmantank's user avatar
55 votes
8 answers
182k views

How to handle authentication popup with Selenium WebDriver using Java

I'm trying to handle authentication popup using the code below: FirefoxProfile profile = new FirefoxProfile(); profile.setPreference("network.http.phishy-userpass-length", 255); profile.setPreference(...
Imen CHOK's user avatar
  • 930
660 votes
17 answers
329k views

JWT (JSON Web Token) automatic prolongation of expiration

I would like to implement JWT-based authentication to our new REST API. But since the expiration is set in the token, is it possible to automatically prolong it? I don't want users to need to sign in ...
maryo's user avatar
  • 6,819
397 votes
11 answers
154k views

How should I choose an authentication library for CodeIgniter? [closed]

I see there are a few. Which ones are maintained and easy to use? What are their pros and cons?
GavinR's user avatar
  • 6,194

15 30 50 per page
1
2 3 4 5
471