Questions tagged [authentication]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
40 views

Magento 2.4 Admin Custom Controller Check If User Logged In and Redirect to Login If Not

In an Admin Controller Class, How do I check if the admin user is logged in, then redirect to the login page if not logged in, then return to the previous controller after login? A cut down version of ...
Fox's user avatar
  • 191
0 votes
3 answers
250 views

GraphQL Authorization - How do I know if it is working?

I have a locally-hosted instance of Magento and am testing out the GraphQL capabilities using postman. I understand that I need to pass the access token via the Authorization header as a bearer token. ...
Steve Driscoll's user avatar
0 votes
0 answers
79 views

Recaptcha 3 does show on Authentication Popup

Recaptcha v3 invisible does not display on authentication popup and when the login button is clicked it show the error - This is a required. See below. When I looked at the browser console, I can see ...
Inducesmile's user avatar
1 vote
0 answers
54 views

Error while login customer into the authentication-popup frontend

Actually, I have installed the phone number login extension into Magento 2.4 downloaded it from GitHub, and added some new functionality as per the requirement after doing all functionality I faced an ...
user avatar
0 votes
2 answers
32 views

Local setup after disabling Magento_TwoFactorAuth admin panel still ask for Security Code

After local setup, I have disabled Magento_TwoFactorAuth and changed the value of Magento_TwoFactorAuth to 0 in config.php and still can't log in to the admin panel Security Code: After changing ...
Mac's user avatar
  • 1
0 votes
1 answer
116 views

Authentication Required Payment Failure

We are getting an increasing number of payment failures through our ecommerce website due to "Authentication Required" Our customers' banks say the issue is not on their end and that the ...
Marta Nino-Marcos's user avatar
1 vote
3 answers
1k views

Magento 2 How to use header variable in resolver?

I have created one graphql extension for customer OTP send and verify for login with OTP in the project's POS app. There are two requests When POS app request OTP with customer_id and pos session_id, ...
Bhavesh Prajapati's user avatar
1 vote
1 answer
509 views

Magento 2 : How to correctly return 401 unauthroized in graphql request

Existing Magento GraphQLExceptions return 200-th http code. What would be a correct way to throw 401 for example? Or at least show custom status code in response.
Herokiller's user avatar
0 votes
2 answers
501 views

How to add products in Magento 2 using Magento 2 REST API?

How to add products in Magento 2 using Magento 2 REST API. I am using http://127.0.0.1/mag/rest/default/V1/products this url in postman but it gives me this error: { "message": "...
Prits's user avatar
  • 626
0 votes
0 answers
71 views

Is there any way to log in to the frontend without going through the log in page?

I am trying to implement some UI tests written in selenium. There are a number of test cases which rely on the user being logged in. If I use the frontend login form to log in, and one day I find the ...
5a5a8's user avatar
  • 1
1 vote
1 answer
210 views

Installation failed, reverting ./composer.json to its original content. Authentication always fail even though the credential are correct in magento 2

I am alwaays getting the below error when running composer require like that. I am currently giving the authentication keys but still it displays error. Please help Installation failed, reverting ./...
Kowsigan Atsayam's user avatar
0 votes
2 answers
1k views

how to show customer authentication popup when clicking on checkout button in minicart while guest checkout is enable mangento 2

I want to check if a user is logged in before proceeding to checkout. On the basis of customer login condition, i want to show the login popup if not login, and redirect to checkout if logged in ...
Nit's user avatar
  • 101
3 votes
1 answer
324 views

Why do authentication tokens only last an hour / How can I persist a user

I'm using magento 2.3 in a headless way via their rest & graphql api's. By default the auth tokens you get from magento (according to https://devdocs.magento.com/guides/v2.3/get-started/...
Jesco's user avatar
  • 31
0 votes
0 answers
262 views

Authentication Popup Close Icon and Background in Porto Theme

I am using Porto Theme (Magento 2.3.3) and I disabled guest check out. When the user clicks the "Proceed to Checkout" button, authentication popup opens but it has no background and there is a square ...
İbrahim Safa Uç's user avatar
1 vote
1 answer
211 views

what type of authentication i need to use laravel to magento

I want to use Laravel as frontend for Magento 2 . And I want to use Rest API for that. I have seen below authentication types are there. 1.Session based 2.Token based 3.Oauth based. Which one I ...
sivakumar's user avatar
0 votes
1 answer
340 views

Magento 2.3 customer beforeAuthenticate plugin not working

I am facing allowed memory size of bytes exhausted when ever trying to login customer in magento 2.3.2 I have used beforeAuthenticate plugin to do some functionality after sometime customer can not ...
Manish Maheshwari's user avatar