Questions tagged [authentication]

Authentication is the process of determining whether someone or something is, in fact, who or what it is declared to be.

Filter by
Sorted by
Tagged with
4 votes
2 answers
55 views

Python Tkinter UI Pattern Password Code

This post is less of a question and more of a hope for people to see my code which I know is far from great and give me some direction or simple tips on improving the quality of it. Normal Stud: ...
user avatar
  • 41
0 votes
0 answers
26 views

Two Factor Authentication for safe storage with totp

This code snippet shows an implementation of two factor authentication. - It uses the library otp - It generates and verifies a totp - It creates a provisioning uri for the user Initial setup: ...
user avatar
0 votes
1 answer
48 views

Password policy with regex and zxcvbn

This code snippet shows an implementation of a password policy check. - The method composition uses regex to verify that the password meets composition criteria (at least one number, one special ...
user avatar
-2 votes
0 answers
47 views

Password hashing for safe storage with Pbkdf2

This code snippet implements password hashing for safe storage. It uses Pbkdf2 for the hashing algorithm. The method hash_password() is used to hash and salt a password. The method verify() is used to ...
user avatar
1 vote
0 answers
56 views

Password hashing for safe storage with Bcrypt

This code snippet implements password hashing for safe storage. It uses Bcrypt for the hashing algorithm. The method hash_password() is used to hash and salt a ...
user avatar
2 votes
1 answer
60 views

Password hashing for safe storage with Argon

This code snippet implements password hashing for safe storage. It uses Argon2 as hashing algorithm. The method hash_password() is used to hash and salt a password. ...
user avatar
3 votes
1 answer
75 views

User registration and login service using JWT

I have created service to communicate with my backend for user registration and login. I use the JS fetch API and send all data through HTTPS. I use JWT tokens to authenticate queries once I have ...
user avatar
  • 133
2 votes
2 answers
111 views

Login and Register program

This is my first program i write after i finished the c++ tutorials, that program can login and register, the program ask the user to choice login or register after user choice and write his username ...
user avatar
1 vote
1 answer
139 views

React Native login, sign up and sign out using Firebase project

I have built a basic app which uses firebase for authentication. The app is pretty simple. Sign up the user to firebase using email and password. Sign in the user Sign out the user Also, I have ...
user avatar
  • 53
0 votes
1 answer
64 views

Authenticate and login script updated

How can I improve/secure my login script and how to check for any possible injection? PS. the script must run on multiple platforms, so I need empty arrays for cases such as the Android ones. UPDATES ...
user avatar
  • 27
0 votes
1 answer
43 views

Authenticate and login script

How can I improve/secure my login script and how to check for any possible injection? PS. the script must run on multiple platforms, so I need empty arrays for cases such as the Android ones. ...
user avatar
  • 27
0 votes
1 answer
216 views

Authentication middleware using Dart Shelf

I'm using the shelf package from Dart to implement a backend for the realworld-example-app. According to the specs, some routes require authentication, some don't, and in others the authentication is ...
user avatar
1 vote
1 answer
118 views

Authenticate and log in users

How can I improve my login script and how to check for any possible injection? PS. the script must run on multiple platforms, so I need empty arrays for cases such as the Android ones. user_table: <...
user avatar
  • 27
10 votes
2 answers
2k views

Is my PHP login system following best practices? Is the code really OOP?

I'm learning about OOP and putting my knowledge into practice. I created a login system in PHP, so I wish someone could tell me if I'm on the right track. I feel like I'm getting better at coding, but ...
user avatar
  • 193
1 vote
0 answers
33 views

Verify implementing Microsoft Graph 4.0.0 for SSO in Azure is implemented correctly

I originally posted this on SO, and I know cross-linking is generally frowned upon. But, I am not sure if this falls under question or code review because the code works where I do not know if it is ...
user avatar
  • 131
1 vote
1 answer
84 views

Login using two-factor authentication

I want to make the code below prettier but I don't know what to change and how to change. I know that the controller should be easy, delegating actions related to models or to services or something ...
user avatar
1 vote
2 answers
1k views

Account signup/login program in Python

This is my first program that I wrote on my own. Is there something I can improve upon? There are a few things that still need to be added, such as: Confirm password while registering Adding a way to ...
user avatar
1 vote
1 answer
66 views

Making my login function more readable and maintainable

I recently wrote a login function in my express application that does the following: Verifies the user's email and password are correct Generates a JWT Access Token with a short expiry date, and then ...
user avatar
  • 13
1 vote
0 answers
83 views

Signing in with "Remember me" option implemented with Spring and Kotlin

I'm trying to implement authentication with "Remember me" option using Spring and Kotlin. I would really appriciate if someone could help me find potential issues with that implementation as ...
user avatar
4 votes
1 answer
1k views

Login system using bcrypt and MySQL, to be used for any future projects

Main function will ask what the user wants to do. LoginSystem class will handle the sign up and login process as well with the checking if password is right. passwordHashing will use bcrpyt to salt ...
user avatar
3 votes
1 answer
70 views

Security of the login code on the website

I wrote the code to log in php to the admin panel. Everything works as it should. But I am not sure if it is well written code and if it is safe. I care about security. I have read a lot about it but ...
user avatar
  • 31
0 votes
1 answer
44 views

A wrapper for user authentication using cURL in PHP

So I created a wrapper class to authenticate user via POST HTTP request. ...
user avatar
1 vote
0 answers
330 views

Secure auth with Node.js, GraphQL, Nexus and passport with JWT's

I am trying to authenticate / authorise users with graphql, nexus, passport, prisma, graphql-shield and fastify for REST with JWT To answer possible questions: I am using passport because it handles ...
user avatar
  • 11
1 vote
1 answer
156 views

Private desktop and mobile WebSocket connections with Node.js

Background info To learn a new branch of my dev career, I've started a new project in my spare time (I've never used WebSockets before and I also want to learn more about common authentication flows). ...
user avatar
  • 218
6 votes
1 answer
100 views

Basic login system with 2 factor authentication

What I try to achieve I need to create a administration-panel for a website. Therefore, I need a possibility to protect the content of the panel via a password. The functionality doesn't have to be ...
user avatar
4 votes
2 answers
175 views

Angular Frontend login logic

This is a follow-up to this question Node.js backend login logic. I wrote the following login Angular frontend logic for my Node.js Backend (see the previous question above). Is it any good in terms ...
user avatar
  • 195
9 votes
1 answer
257 views

Node.js backend login logic

So I wrote a rather primitive login logic in Node.js, which authenticates the user and handles JWT. Is it any good in terms of security, efficiency, building, async/sync, logging. SECURITY is my main ...
user avatar
  • 195
3 votes
0 answers
29 views

Basic authentication with session ID

I'm quite new to web development. I want to implement basic session ID authentication. Here's the implementation ...
user avatar
  • 203
5 votes
0 answers
115 views

Security of cookie based authorization Golang

I still write login system in Go(Golang) using cookies.But my system is still not secure enough.Can you review my code and provide some suggestions on how to improve the security?Previous question. ...
user avatar
3 votes
0 answers
172 views

C++ Crypto: Part 4- Scram

Looking around for modern Crypto libraries. Could not find anything good. I know I probably did this all wrong so work with me here. There will be four different reviews for four structures that build ...
user avatar
  • 91.7k
3 votes
1 answer
274 views

C++ Crypto:Part 3-pbkdf2

Looking around for modern Crypto libraries. Could not find anything good. I know I probably did this all wrong so work with me here. There will be four different reviews for four structures that build ...
user avatar
  • 91.7k
4 votes
1 answer
268 views

C++ Crypto: Part 2- HMAC

Looking around for modern Crypto libraries. Could not find anything good. I know I probably did this all wrong so work with me here. There will be four different reviews for four structures that build ...
user avatar
  • 91.7k
4 votes
2 answers
255 views

C++ Crypto: Part 1- Hash

Looking around for modern Crypto libraries. Could not find anything good. I know I probably did this all wrong so work with me here. There will be four different reviews for four structures that build ...
user avatar
  • 91.7k
1 vote
1 answer
255 views

Cookie authorization Golang

I'm writing login system in Go(Golang) using cookies.I think it's isn't safe enough. Can you provide some suggestions on how to improve the security. Main file: ...
user avatar
8 votes
2 answers
702 views

WinForm Logon Best Practices

I have a working logon for a WinForms Project. I use the program.cs file to launch the login form. I am not so sure there isn't a better way of implementing this. ...
user avatar
  • 487
3 votes
0 answers
720 views

Login function with python and SQLite

I'm a new programmer who is currently working on a personal project. It is supposed to be a login program which stores user data in a SQLite database. I was wondering if anyone could look at my code ...
user avatar
  • 31
2 votes
1 answer
166 views

ASP.NET Web API Authentication For Xamarin App

I've recently been learned how to implement a token based authentication with ASP.NET and I would love to get some input on how my code & structure is as well as how I can make it better. The code ...
user avatar
2 votes
0 answers
72 views

JWT authentication system login through API

This is my first time writing an authentication system. Here's how it works, first client needs to send credential within authorization header like { Authorization : 'Basic ' + credential } through ...
user avatar
  • 271
5 votes
3 answers
2k views

A simple Java login system

I created a simple log-in system in Java for a project. Security isn't a concern here, hence the plaintext password, but I'm interested in how I can improve the quality of my code. Everything seems to ...
user avatar
  • 51
3 votes
1 answer
531 views

Crypto createCipheriv and createDecipheriv for authentication

I'm not an expert in authentication, so I want to make sure I have done everything right. I am using crypto.createCipheriv and ...
user avatar
  • 133
3 votes
0 answers
372 views

Creating SQL Server Database Users Dynamically from User Input

The Application I have an application in testing that runs off of an MS SQL Server database. The app allows users to authenticate using Windows authentication (that is, using the Windows username the ...
user avatar
6 votes
1 answer
1k views

Handling google authentication with firebase in nextjs web app

Background info I have just started using/ learning how to use Next.js and developed a basic application which allows users to view several pages, some of which are authentication protected. Users ...
user avatar
2 votes
0 answers
262 views

PHP Secure Remember Me for Login using PHP Session and Cookies with referer url

I have followed a mysqli tutorial to create a login with cookies and session with remember me authentication in pdo. in tutorial class had a new db_connection, I ...
user avatar
4 votes
0 answers
466 views

nodejs 401 request retry mechanism

I'm working on a project in which I have a backend in nodejs and from there I need to call external APIs, those APIs require authentication token which is valid for 15 minutes. So if response status ...
user avatar
1 vote
0 answers
98 views

Decrypting a form always returns the previous authentication ticket values [closed]

I have an MVC application that uses Active Directory membership for user authentication. After the user logs in, a FormsAuthenticatedTicket is created and ...
user avatar
1 vote
0 answers
236 views

React Native form for entering one-time password [closed]

Here is the React Native code to optimize: it's an OTP form. I want it to be as small as possible. ...
user avatar
  • 111
1 vote
0 answers
173 views

Setting the token for API client generated instances in an Angular application

I am developing an Angular application who also consumes an external REST API. I am also trying the OpenAPI generator using a TypeScript template. The OK path is the following: call a method that ...
user avatar
  • 1,786
2 votes
2 answers
2k views

Codeigniter 3 Registration and Login System

I am working on a basic blog application in Codeigniter 3.1.8 and Bootstrap 4. The application allows Registration and Login. I have concerns about the security level of the Registration system I ...
user avatar
5 votes
4 answers
244 views

Java methods to add and authenticate users in MySQL

I'm going through some code and trying to figure out how to get rid of duplicates from the following two methods. Both methods execute a simple login/register query to a local MySQL DB. I couldnt ...
user avatar
  • 61
1 vote
0 answers
30 views

Precompiled templates with initializators (factory pattern) or single interface and method or what else?

PROBLEM I'm trying to use authboss (https://github.com/volatiletech/authboss) with quicktemplate (https://github.com/valyala/quicktemplate). The authboss rendering system is defined by one interface:...
user avatar
  • 183

1
2 3 4 5
8