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
207 views

A Python terminal

This is the code for Pylect, a Python terminal I worked on a while ago which also caused my Desktop to get destroyed because of bad code. I use it infrequently but I would like a review for the code ...
The_AH's user avatar
  • 135
-1 votes
1 answer
76 views

logging in using cookie authentication/authorization in asp.net C#

How safe is Cookie based Authentication/Authorization in ASP.NET C#? Take a look at the example below, don't worry about password hashing, All this code does is that it takes a username and a password ...
Newbie's user avatar
  • 13
2 votes
1 answer
53 views

Session-based authentication using Express.js

I'm currently learning Express.js and I wrote this authentication code. I'm unsure if what i have is correct, how to improve it and if it's secure. For user and session data storage I'm using ...
Krneki123's user avatar
3 votes
0 answers
99 views

MVVM signing in using firebase

I'm new to MVVM architecture. I want to have authentication with email + password, google and Facebook. I'm not sure if there should be separate view models for each authentication way: ...
Edziu Kowalski's user avatar
3 votes
0 answers
158 views

System to automatically login to my university's Wi-Fi network using HTTP request

What is this? My university's Wi-Fi network requires students to visit a specific URL and login to the network before we can use the actual internet. This project replicates that same process by ...
eccentricOrange's user avatar
1 vote
0 answers
564 views

NextJS NextAuth Implementation using Custom Token Source

I am new to NextJS, it has somewhat been forced on me and the existing code was not authenticating correctly (after a period the site would hang - not return to login - this was due to the way we were ...
MoonKnight's user avatar
3 votes
1 answer
67 views

Basic node authentication system

I built a basic authentication system for a node application and I have some security concerns. The username and password the user enters when they log in are stored as plaintext using express-...
HDawG's user avatar
  • 33
2 votes
1 answer
366 views

Simple Secure Python Login Example

I'm trying to determine I missed something here since python isn't my native language. Python app starts Python creates a cert.pem and key.pem running this command ...
DotNetRussell's user avatar
1 vote
0 answers
220 views

Error handling for Laravel REST API client and server using bearer token authentication

I would like to query a REST API (which uses Bearer token authentication), handling several exceptions that might occur. Could you tell me if the following code (which I explain later in this post) is ...
JarsOfJam-Scheduler's user avatar
4 votes
2 answers
151 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: ...
Jack's user avatar
  • 41
-1 votes
1 answer
141 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 ...
questıoner's user avatar
1 vote
1 answer
342 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. ...
questıoner's user avatar
3 votes
1 answer
413 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 ...
ekke's user avatar
  • 133
2 votes
2 answers
6k 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 ...
soufiane's user avatar
1 vote
1 answer
350 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 ...
Eduards's user avatar
  • 225
0 votes
1 answer
69 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 ...
Taa Lee's user avatar
  • 37
0 votes
1 answer
49 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. ...
Taa Lee's user avatar
  • 37
1 vote
1 answer
1k 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 ...
Marcus Vinícius Monteiro's user avatar
1 vote
1 answer
123 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: <...
Taa Lee's user avatar
  • 37
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 ...
Warlock's user avatar
  • 193
1 vote
1 answer
133 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 ...
skoryi-romb's user avatar
1 vote
3 answers
3k 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
73 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 ...
Tony's user avatar
  • 13
1 vote
0 answers
134 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 ...
Weeedooo's user avatar
5 votes
1 answer
3k 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 ...
drakebakincake's user avatar
3 votes
1 answer
79 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 ...
test's user avatar
  • 31
0 votes
1 answer
87 views

A wrapper for user authentication using cURL in PHP

So I created a wrapper class to authenticate user via POST HTTP request. ...
Anurat Chapanond's user avatar
1 vote
0 answers
413 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 ...
Daniell's user avatar
  • 11
1 vote
1 answer
250 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). ...
htmn's user avatar
  • 218
6 votes
1 answer
119 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
327 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 ...
Munchkin's user avatar
  • 195
9 votes
1 answer
350 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 ...
Munchkin's user avatar
  • 195
3 votes
0 answers
50 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 ...
Yura's user avatar
  • 203
4 votes
0 answers
128 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. ...
Honor 373's user avatar
3 votes
0 answers
339 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 ...
Martin York's user avatar
  • 94.3k
3 votes
1 answer
495 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 ...
Martin York's user avatar
  • 94.3k
4 votes
1 answer
370 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 ...
Martin York's user avatar
  • 94.3k
4 votes
2 answers
326 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 ...
Martin York's user avatar
  • 94.3k
1 vote
1 answer
439 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: ...
Honor 373's user avatar
8 votes
2 answers
790 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. ...
Randy's user avatar
  • 487
4 votes
1 answer
1k 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 ...
Louie's user avatar
  • 41
2 votes
1 answer
211 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 ...
AcePilot10's user avatar
2 votes
0 answers
82 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 ...
Patrick's user avatar
  • 321
5 votes
3 answers
3k 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 ...
TomZ's user avatar
  • 51
3 votes
1 answer
945 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 ...
ZiiMakc's user avatar
  • 133
3 votes
0 answers
418 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 ...
Keith Stein's 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 ...
nopassport1's user avatar
2 votes
0 answers
382 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 ...
Ercan Koç's user avatar
6 votes
0 answers
557 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 ...
Abhay Sehgal's user avatar
1 vote
0 answers
120 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 ...
deathNote25112017's user avatar

1
2 3 4 5
8