Need help with coding for a single user login on two separate WordPress domains each using different databases. The sites are: www.site1.com - DB1 www.site2.com - DB2 ...
When a user tries to login, I have created a modal window. If the user enters incorrect credentials, it returns SignInStatus.Failure, which is fine. However, the page then refreshes and only displays the number "3" at the top of the page with no other cont ...
For the past few months, I've been working on projects using Next.js, and one issue that has consistently troubled me is related to the Navbar. Within the Navbar, I utilize the useSession() hook from next-auth to verify if the user is authenticated. ...
Presently, my backend provides me with an access and refresh token for user authorization. In a past project, I stored tokens in local storage for client-side user authentication. As my current project is restricted to registered users only, I have implem ...
My AuthGuard setup works flawlessly during normal navigation within the application (see code below). Now, consider this scenario: A user goes to /content/secured-content, which requires authentication => they are redirected to /authentication/login due ...
I've been exploring ways to implement authentication on my Nuxt app, but I'm struggling to find a tutorial that doesn't rely on redirecting to public or private paths. For example: if (user.isLoggedIn()) { redirect('/dashboard') } else { redirect ...
I encountered a reference error while working on a test project assigned by my employer. This issue arose when I reached the final test and came across the term "_user". Can anyone explain what does this mean in this context? 'use strict' let assert ...
Striving to enhance frontend security by restricting access to specific IDs. The goal is to redirect anyone trying to access routes other than /login/:id to a page-not-found error message if not already logged in, but encountering some issues. Below are t ...
My web application caters to two types of users: public users who have yet to authenticate, and private users who are logged in and have authenticated themselves. Using token-based authentication in a single-page app, there are no page refreshes after the ...
Two months ago, my two dockerized Laravel apps were functioning properly. However, now when I attempt to log in, the app fails to authenticate. Interestingly, unauthenticated routes work without any issues. The database is operational, and even migrations ...
Upon a user logging in through my React frontend, an API call is made to the server side to generate a JWT token which is then sent back in a secure HTTP-only cookie. Subsequent API calls from the frontend include this cookie for verification on the server ...
I am looking to update the JWT secret key without causing any browser errors for users who are already logged in. Currently, changing the JWT secret key while a user is logged in results in a browser error. The only solution is for the user to manually de ...
How should I properly authenticate an Angular single page application when the backend service stack is located on a different domain name with CORS? ...
Looking to set up basic authentication for my first public-facing Node app, utilizing two Passport strategies: one for Facebook and one for Twitter. Not considering an email/password system at the moment until I fully comprehend the security implications. ...
I am in the process of developing a basic Next.js HOC for authentication. Despite my efforts to find a solution, I haven't been successful so far. Within my Next.js app, there is an admin page that needs to fetch data from http://localhost:4000/user/me, w ...
Encountering issues while trying to set up nextauth v4. Keep getting this error: Client fetch error, Unexpected end of JSON input {error: {…}, path: 'session', message: 'JSON.parse: unexpected end of data at line 1 column 1 of the JSON d ...
Because of the poor internet connection in my region, I made the decision to avoid using the laravel/ui package. I am facing an issue with Auth::attempt not functioning correctly. The hash keeps changing, causing the hashed password to not match. Can anyo ...
I am currently using Next Auth with credentials to handle sign-ins. Below is the React sign-in function, which can be found at this link. signIn('credentials', { redirect: false, email: email, password: password, remembe ...
As I delve into creating a login system for my simple social media website where users can make posts and view feeds from fellow followers, I've successfully implemented user login. Upon logging in, I'm able to retrieve the user's credential ...
EDIT: I need to mention that my experience with AngularJs is only a week, so if you have any suggestions unrelated to the question itself, please feel free to share them in the comments section. Alright, here's the situation. I have authentication Control ...
Having transitioned from Angular 1 where JWT tokens were used for user authentication, I had the following code: .config(function Config($httpProvider, jwtOptionsProvider) { // Interceptor to add token to every $http request jwtOptionsProv ...
Being new to Laravel Passport, I find it quite confusing. I've watched Taylor Otwell's tutorial on Passport but still can't figure out if it's possible to authenticate an Angular app with Laravel Passport. My goal is to develop a Full ...
Is there a way to authenticate without exposing parameters in the URL? The solution requires manually handling alerts (switching to alert, authenticating, then switching back to the original window) using Selenium's Alert Class method. Below is the f ...
Hello everyone, I need some input to help me troubleshoot an issue I'm having with my code. I am trying to log in to a specific website using Selenium, but I keep encountering this error message: An Exception has occurred: AttributeError 'list ...
Currently, my focus is on transitioning to the MERN stack and incorporating an authentication module using Next.js (front-end) + Node.js (for scalability). I am utilizing JWT token method for authentication and have some concerns: Storing tokens in coo ...
I am currently working on a project involving a nodejs application with angular. I have come across some scenarios that are causing confusion for me. Can anyone provide guidance on the best practices to handle the following situations? Regarding route: ...
Currently, I am in the process of developing a node js app and attempting to implement a user authentication system using Mongoose-Auth. Despite following several tutorials and guides on how to use Mongoose-Auth, I have encountered a hurdle. The basic pas ...
I have encountered a persistent issue while using node.js, express, and passport. After successfully validating the user with passport, my application keeps redirecting back to the login page instead of rendering the index page. Is there a problem with the ...
TL;DR: Upon logging in, the JWT saved on the client-side is sent to the server using angular2-jwt and verified with express-jwt, resulting in an "UnauthorizedError: jwt malformed" message. Greetings! I'm currently developing a Single Page Application (SPA ...
I implemented the use of Context API to manage user login state and also utilized Firebase Auth persistence to keep users logged in even after a page reload, however, it seems to not be working as expected. While the user information is being saved in the ...
My login using firebase authentication is successful with the signInWithPopup function. However, upon logging in, I encounter an issue where a message appears in my console stating that a boolean is being passed as a fourth parameter to window.open. This w ...
My latest project involves building a Vue.js application with authentication using Supabase. I've been trying to implement the signUp() method from Supabase in order to collect extra user data during the sign-up process. In my code, I added a property ...
I am struggling with authorizing a user login because I am unsure of the correct syntax. My goal is to modify https://github.com/ZWEISCHNEIDER/fastbill to enable the login API-wise. The current header code that works is as follows: curl_setopt($ch, CURLO ...
I encountered a strange issue after deploying my app with nodejs passport login. Everything was working fine in development, but when I moved it to production, the user would randomly change upon page reload. Below is an excerpt from my app.js code: var ...
Just dipping my toes into the world of Laravel and I've encountered a little query. I want to set it up so only the original Creator/Owner of a post can make changes like editing, viewing, or deleting it. Each Post is linked to a User, where each Us ...
When a user logs in as an admin on my website, I want certain options to be available. My concern is ensuring the security of this admin account. Currently, after the login process is authenticated, I set $_SESSION['status'] = 'authorized&ap ...
Currently, I am working on a way to implement user authentication in a multitenant application without requiring any visible user interactions. Specifically, my goal is to seamlessly log in or register users into my helpdesk app when they are already logge ...
Exploring a Twitter login option for my sports social media dashboard project, I followed a helpful tutorial. While I've successfully implemented the HelloWorld component and retained the app.vue and main.js components, I encountered an error stating ...
Utilizing Angular's canLoad function in my AuthGuard to authenticate a lazy loaded module at the root of my application. If the user is not authenticated, the module will not load and the user will be directed to the login page. This process works sm ...
After clicking on the payment link provided at https://github.com/AuthorizeNet/sdk-php, I encountered an issue with the message "User authentication failed due to invalid authentication values". Surprisingly, the code works perfectly for the developer acc ...
My experience with Next.js has mainly been on the frontend, but I'm diving into the backend and functionality for the first time. After struggling for about 4 hours, I still can't figure out how to differentiate between email providers for my two ...
I am currently exploring the capabilities of NextAuth and have configured it to work with MongoDB as the credentials provider. In my exploration, I came across the need to include additional properties in the user session such as the _id generated by Mongo ...
I am developing a Next.js project with the integration of Supabase. User authentication is done through Supabase clients using Google OAuth providers. I have followed the exact code from this GitHub repository: https://github.com/SamuelSackey/nextjs-supaba ...
In my PHP project, I am trying to implement a check on the Login page to verify the status of the session. If the session is not set, I want the user to be redirected to the login page. However, the code I added to the login page seems to cause a loop. if ...
I've been experimenting with different methods to secure a route for unauthenticated users, but I'm facing difficulties in implementing it effectively. One common issue I encountered while attempting authentication from getServerSideProps was the recurrin ...
I've been attempting to enable passwordless login in a Laravel application, but I keep encountering an error message that says: Argument 1 passed to IlluminateAuthSessionGuard::login() must be an instance of IlluminateContractsAuthAuthenticatable, str ...
Having some trouble with my login form. The JavaScript code always returns a false value, even when I'm entering the correct username and password. This is the jQuery code snippet: $(document).ready(function(){ var teamname = $("#teamname"); var te ...
My attempts to implement Google OAuth service have been met with a frustrating error that seems to be completely dysfunctional. https://i.stack.imgur.com/vUqZK.png The same goes for this function, https://i.stack.imgur.com/HN0bj.png Is there a correct w ...
In my login procedure, I have thought of the following steps: Extract nickname and User_pw from req.body. Use findByPk to search for specific data in the database. If the User_pw in the retrieved data matches with req.body.User_pw, then the login is succe ...
I have a login function in Angularjs, but it only works when I submit it for the second time. How can I fix this issue? Here is my code: .controller('LoginCtrl', ['$scope', '$rootScope', '$location', 'AuthenticationService', function ($scope, $rootScope, ...
I am in the process of implementing a password control feature on a login form using jQuery and ajax. This is the current script I have: $(document).ready(function() { $("#login-form").submit(function(e) { var csrftoken = getCookie('csrftoke ...
I've been working with Laravel 5.6 and have successfully set up all my API routes, which are responding to requests from my REST client (Paw). Now, I want to create a basic front end to interact with these routes. In an effort to utilize Laravel&apos ...
For the past 48 hours, I've been struggling with a problem that I can't seem to solve. The task at hand involves logging into multiple browsers on various machines for the same website. It's a time-consuming process, so I've decided to use Selenium to au ...
I am currently working on implementing authentication with NextAuth in my Next.js app. I've noticed that the callbacks from the GoogleProvider are not being executed. Even after adding a console log statement, I cannot see any output in the console. Additi ...
Disclaimer: I have separated my client application (Vue.js) from the server side (DjangoRest). I am utilizing JWT for validating each request sent from the client to the server. Here is how it works - The client forwards user credentials to the server, an ...
Every request to authenticate with the server requires a special value in the HTTP header. The code I am currently using is as follows: <img ng-if="content.image" src="{{img(content.image)}}"> and var app = angular.module('myApp', []); ...
My goal is to create a unified JSON REST API that serves both my javascript web application and external developers. For my web app, I plan to implement user authentication using username/password to access private resources. For external developers acces ...
My latest project involves developing a web application on Azure. The backend is powered by a web API service while the frontend is supported by AngularJS, both hosted on Azure. I am now looking to implement a login page with individual user accounts, but ...
My React frontend currently features two buttons—one for authentication and the other for displaying data once authenticated. frontend: const auth = async () => { window.open("callbackApiRouteOnBackend") } const displayData = async () ...
I am currently utilizing Next.js alongside NextAuth.js in conjunction with an Amazon Cognito setup. My concern arises when I click on the sign-in link immediately after logging out, as my user is automatically signed in without being prompted for credentia ...
I'm currently working on implementing a basic authentication system in vuejs. I have a set of objects containing valid usernames and passwords. I am looping through this list to validate the entered username and password. If there is a match, I trigge ...
Currently, I have a jar file up for sale that requires users to sign up on a particular website in order to download it. My issue lies in wanting to verify if purchasers have a valid login for the site when they run the jar file. Despite my attempts with h ...
My Node.js server has cross-origin communication enabled, allowing my Vue application to access its API from a different origin where static assets are served. This is achieved by setting the following code in Node.js: res.setHeader('Access-Control-Allow-O ...
I am currently working on a Next.js project that includes Supabase authentication. I have set the 'Site URL' in my Supabase settings to https://some-production-url.com for the production environment. However, during local development, I need the ...
Currently, I am working on a project that involves user login through a Google account on localhost. The Google signup functionality has been successfully implemented. However, upon logging in from my account, I encountered the following error message: To ...
My website features a tutorial page that users must read before accessing certain areas. In my mongo database, I have defined a field to track this: const UserSchema = new Schema({ finished_beta_tutorial: { type: Boolean, default: fal ...
I am currently working on setting up a login route URL for each company admin's profile. In the past, I implemented a similar approach with a single schema. Now, however, I am facing challenges as I try to do the same within a nested structure. My go ...
Let me share an unusual situation with you. I am utilizing Next.js along with the Next-auth package for managing authentication. For this particular admin area, Server-Side rendering is not necessary. To authenticate users, I have devised a HOC to wrap a ...
Hello, I am trying to display the username after a user logs in. Here is the code for the page where I would like to show it: index.php <?php require_once 'classes/Membership.php'; $membership = New Membership(); $membership->confirm_Me ...
Is there a way to switch between tabs (not windows) using Python Selenium? Here's the scenario: I need to log in to capital.com with Google. The script first clicks on "login", then selects "login with Google", which opens a new tab where I have to ...
Currently, I am working on integrating Laravel Auth into my project. I am attempting to implement a new rule where users with a status of 1 in the user model are not allowed to login. However, I am struggling to find the exact location to add this rule. I ...
Being a beginner in TypeScript, I've successfully integrated Auth0 with JavaScript thanks to their provided sample code. However, I'm struggling to find any sample applications for using Vue with TypeScript. Any recommendations or resources would be grea ...
I am currently in the initial stages of developing a node.js/react application that will assist users in managing restaurant menu data. I am contemplating on how to properly organize user accounts, restaurant brand accounts, and data ownership. Individual ...
I have been working on a web app that requires authentication using NextJS default auth middleware. However, whenever I try to log in, the app redirects me to the default NextJS form component at the URL /api/auth/signin?error=CredentialsSignin. Even thou ...
After a user signs up using a magic link, I want to update the profiles table in my database. Below is the code snippet I am currently using: Login.tsx import { useState } from "react"; import { supabase } from "../lib/initSupabase"; c ...