Questions tagged [authentication]
Authentication is the process of providing a proof of identity or verifying identity.
72,771
questions
0
votes
0
answers
8
views
401 error occurs between react, redux-toolkit, and node express
I'm currently forming a Web page by using react, Redux-toolkit and node.js.
as I refresh the page, I send axios to server and save response value in the redux store state.however, the error 401 (...
0
votes
0
answers
6
views
Error signing in via email (NextAuth, prisma and Amazon SES)
I'm trying to authenticate with email using NextAuth, Prisma and Amazon SES.
I got a "Server Error - TypeError: email.split(...)[0].trim(...).replaceAll is not a function."
It comes from the ...
0
votes
0
answers
6
views
How to implement user session management in PyQt5 GUI app in python?
I am creating a PyQt5 python app, that requires login and session management,
I looked all over the internet and I couldn't find a clear way to implement this type of session management systems ...
1
vote
0
answers
17
views
How to implement Single Sign On in ASP.NET MVC application
We have developed 2 applications in ASP.NET MVC. We have used ASP.NET Identity in both applications for user authentication. Both applications use the same database. Also both apps are hosted on Azure ...
0
votes
0
answers
11
views
Django third party authentication with Okta not changing users between logout and login with new user
I'm creating an app with Django v. 4.0.3 and using third party authentication with Okta. I have used the package django-okta-auth to aid with the connection to Django's built in authentication. The ...
0
votes
0
answers
10
views
Can you have different conditional MaterialApp s returned?
Basically, I want to return an OTP (One Time Pin) input screen if the app opens and there isn't a valid user file, otherwise the app should open with a menu (Using Provider).
What I tried was:
Main ...
0
votes
0
answers
22
views
Login to a Web Application with Powershell
trying to get information from a Web Application automaticly. To be able to an autorization is required. Thought I had found a promising way, my Code:
$nvidiaLogin = Invoke-WebRequest 'http://"...
0
votes
0
answers
24
views
Iss claim not valid Keycloak
I use the keycloak service to login my web app. Use as a backend spring with oauth 2.0 security. When I go to make a request with postman using the bearer token obtained from keycloak it gives me an ...
0
votes
0
answers
18
views
target_path redirection on successful login is broken following upgrade from Symfony 4.4.41 to 4.4.42
Following an upgrade from Symfony 4.4.41 to 4.4.42 I seem to be unable to use 'target' in the following way:
/**
* Attempting to login as the specified user.
*
* @Route(
* ...
0
votes
2
answers
19
views
Login using passport not return bearer token instead - Laravel 8
I am facing a problem where when I tried to login in postman, the data return after login is not a bearer token but such like this
{
"success": true,
"message": "User ...
0
votes
1
answer
25
views
Hawk authentication in JMeter
can someone please tell me how to configure hawk authentication process (Hawk Auth ID , Hawk Auth Key ,Algorithm ) in JMeter ?
I tried to pass this values like hawk id , hawk key , algorithm through ...
0
votes
0
answers
10
views
CakePHP 4 - How can I prohibit multiple logins?
Hi stackoverflow community :),
I built a CakePHP 4 application with a simple login using the Authentication Plugin following the tutorial (https://book.cakephp.org/authentication/2/en/index.html). Now ...
-1
votes
1
answer
14
views
MongoDB: Disable user --auth, but keep cluster auth
I am a pre-existing MongoDB (5.0) replica set that I would like to disable user auth for, but keep cluster auth on.
What I did was:
sudo systemctl stop mongod.service - stop the service
sudo vi /etc/...
0
votes
1
answer
17
views
Linkedin login screen Java Selenium can't sign out
I created an excel with random emails and passwords in 2 coulmns and excel name is "deneme5". Selenium automatically tries all the emails but once it's logged in with the correct one it's ...
-1
votes
0
answers
21
views
How to keep network credentials hidden from scripts? (and log network access by those scripts?)
We have scripts that connect to various network components (mostly via API, but also via CLI access). The challenge is to keep the network secrets (keys or other credentials) hidden:
We have the ...
1
vote
1
answer
30
views
Can I save custom information in my JWT token?
I would like to know if there is a way to store "custom" information in my JWT token.
Right now I have a REALM created in Keycloak, then when I login against Keycloak, I get my access_token. ...
1
vote
0
answers
27
views
how to prevent users from viewing and updating another user's data in node.js?
I am storing a parking detail with a merchant id in the mongoose schema since a parking belongs to a certain merchant user and it cannot be empty or null.
Here is the model:
const parkingSchema = new ...
-8
votes
0
answers
35
views
If users log out will their status change?
In django, if a user logs out, will their status change from 'active' to 'not active?
Please, I really need to know. Thanks in advance.
0
votes
1
answer
36
views
Laravel 9 - Not able to generate token with passport
The below is my login function in laravel 9 project. I am trying to create an authentication token through laravel-passport.
public function login(Request $request) {
$user = User::where('email', $...
0
votes
1
answer
16
views
Verifying Token from MSAL-React on Backend
I'm currently working on a project that has a frontend built with React and is using authentication from Azure AD. I'm using the MSAL-React package on the frontend to handle login.
When a user makes ...
0
votes
0
answers
17
views
Query param login with cookie authentication in ASP.NET Core
I have a legacy ASP.NET site that needs to be ported to ASP.NET Core due to server migration. The app is an ASP.NET MVC site using cookie login and auth. There is also a legacy query param login, ...
-1
votes
0
answers
15
views
next-auth with Laravel breeze
I'm trying to integrate next-auth with laravel breeze but I can't seem to get it, can someone help me, the reason why I like next-auth is that you can protect pages from middleware using getSession()
0
votes
0
answers
18
views
Unity Authentication for Android - SignInWithGoogleAsync Throws Permission Denied
I'm sure I'm missing something silly but after I retrieve and pass the google id token to Unity Authentication I get the errors:
[Authentication]: Request failed: 401, {"title":"...
-1
votes
0
answers
30
views
How to disable user login in PHP? [closed]
I'm trying to make in php that user can't log in the page if admin has blocked him. I already made that admin can change status in users table, but I don't know how to code it in login.php, that when ...
0
votes
2
answers
39
views
Two different login system in Laravel 9
In my case, I will create a login system with two different users. a) Voters and b) Administrators. Where "Voters" login using the ID Number and password. That password generated by the ...
0
votes
0
answers
9
views
soap authentication while calling a webmethod
I would like help with a SOAP WebService. I was calling a webmethod without any issues; authentication is as follows:
public static void applyBasicAuth(String userName, String password) {
...
0
votes
0
answers
17
views
Enabling multiple authentication/authorization plugins in Vernemq
When it comes to authentication/authorization in Vernemq, I expected that multiple enabled plugins would be checked in order to determine if a connect/pub/sub is permitted or not.
However, I am ...
0
votes
1
answer
9
views
LaravelTrust and LaravelAuthUI can't import role to database
I have a problem with laravel trust $User->attactrole('user'), and Laravel Auth UI I want to create role_id with register. After the registering, I didn't see any data in the role_id table. Thank ...
1
vote
0
answers
29
views
Integrate JWT (JSON Web Token) service with Vapor for Sign in function
I'm integrating JWT (JSON Web Token) service with Vapor for the auth process, but I'm getting a runtime error (attached below) when trying to run the Vapor project.
Swift/ErrorType.swift:200: Fatal ...
-1
votes
0
answers
11
views
Is this a good approach to building a single sign on? [closed]
My company has over 4 applications now, currently working on the fifth. And soon the sixth will come on board and so on.
We noticed that a huge number is users of each application is a subset of other ...
0
votes
0
answers
9
views
Custom Authentication strategy in LoopBack4 not working
I am trying to follow https://loopback.io/doc/en/lb4/Implement-your-own-strategy.html and got so far with following steps:
Step 1: Created a Custom Strategy (auth/my-strategy.ts) based on following ...
0
votes
1
answer
18
views
How to send cookies to client from node/express server?
I am having the hardest time sending cookies from my nodejs server to my browser. Below is my index.js (server side) code:
app.use(express.json());
app.use(express.urlencoded({ extended: true }))
app....
0
votes
0
answers
18
views
validate login in doubly linked list [closed]
I want to validate a login in a doubly linked list, but when I put two registers, I can only access the first one, the second one gives an error, why?
in this example, if i try to validate the first ...
0
votes
0
answers
78
views
Why AuthenticationForm() in Django is not being valid?
So I've been trying to create a function in Django for users to log into their accounts. But it is only working for super users. When I try to log in from other accounts, it keeps resetting the ...
0
votes
1
answer
36
views
Why jwt.io website is giving an error for validating a token?
I get an access token from Microsoft Identity Platform and I try to verify its signature (to understand the process of validation) using jwt.io website. The thing is when I paste this access token on ...
0
votes
0
answers
32
views
Get requests callback Python
I need to get a code from an authorization get requests. I have this:
r = requests.get(endpoint_auth,params=query_params)
url=r.url
webbrowser.open(url, new=0, autoraise=True)
When I authorize myself ...
-1
votes
1
answer
14
views
Cross-Domain App Authentication to HTTP API Server
I am attempting to set CORS headers on my API server (myserver.com) to allow cross-origin, authenticated requests with cookies from my embedded mobile app or other site (localhost:8080)
Here is the ...
0
votes
1
answer
28
views
Django Custom User Model - admin customization
So, I was making a custom user model, and to be able to change the password using the admin page I did this on the UserAdminChangeForm, is it wrong? I mean dealing with the security.
password = ...
1
vote
0
answers
28
views
Keycloak and Go with gocloak - Cannot decode tokens
I am trying to do some testing using keycloak and go in a local docker setup. Currently, I have a keycloak container (with a postgres backend) running on 8080. I set this up with a client that has ...
0
votes
0
answers
10
views
Missing Exchange and SharePoint Event Logs in DC event Viewer
Considering that authentication of Exchange and SharePoint users is done through Domain Controller, but Event Log 4624 and 4625 cannot be seen in Domain Controller.
Of course, all Event Logs are ...
-1
votes
0
answers
18
views
Fetch token from cookies in vuex in vuejs after page refresh [closed]
[I can't fetch token from cookies using vuex for login page, below my code in store.js and APP,js][1]
here picture
https://drive.google.com/drive/folders/1tbVPJTSZ_lR1Etxw2YNjOl3yTovJLyVi?usp=sharing
0
votes
0
answers
17
views
How to use access token in react redux
I use react, rudux-toolkit, nodejs.
I am thinking of saving access token to the redux store and using it for tasks that require auth such as 'writePost' etc, if I log in and receive access Token from ...
0
votes
0
answers
25
views
How Do I Set This So That Certain Information Displays Whether Or Not The User Is Logged In?
I've been working on this code for a while. The website I'm building is not off-limit to those not logged in but shows different content depending on whether or not the user is logged in. For instance,...
1
vote
1
answer
38
views
Blazor WASM: Add JWT auth with custom API
I have built an API that controls some smart home stuff. To prevent the whole internet from doing so, I added authentication using JWT / Bearer. The API contains endpoints for the smart home stuff ...
0
votes
0
answers
8
views
Passport local authentication fails on request after authenticated
I want to authenticate using the Passport local strategy. To be safe, I store the session in MongoDB.I am authenticating with passportjs for the first time, so if you can help me I would be very ...
0
votes
1
answer
20
views
Flutter - Sign Firebase token with Auth0
When signing in to Firebase (for example with Google) and returning the token, how to make that token signed by Auth0?
0
votes
0
answers
14
views
How to manage two or more Passportjs strategies?
I am doing an eCommerce as a personal project and plan to use Passportjs to manage the authentication process. I want to add local and google strategies but I have these questions: If a user logs into ...
0
votes
0
answers
27
views
Why is req.cookie.token_name not working?
I was building authentication for a website
and the req.cookie was returning undefined. Can I know what's wrong with that?
this is my server code
and I imported the auth file here
app.get("/"...
0
votes
0
answers
16
views
In firebase authentication, I cannot login using the account that is created by `createUser`
In firebase:
I created an account using createUser - userA
Logged in using this account(userA) and called createUser function to create another user - userB
So userB is registered into firebase ...
0
votes
0
answers
13
views
When should you validate a JWT token in a React App?
I recently implemented JWT tokens in my React + ASP.NET Core 6 Web application.
When a user signs in, the request is sent via HTTP request to the server to issue a JWT token
back to the client. The ...