Stormpath custom template error handling - express

So I have a custom login template setup to render my login page. I need to know how a login error message should be handled. What error data is sent to the client on an error and how do I access it?

Related

"The requested operation is invalid. Server Response: Something went wrong" on Custom Page after SubmitForm Issued by InvalidPluginExecution

In my form of CRM i call a custom page by a dialog. On custom page i save a form by SubmitForm but it go in trown by a plugin validation. I want to show a error message of invalidPluginException on my custom page. I try preview on PowerApps and i see correct error message, but on dialog i see The requested operation is invalid. Server Response: Something went wrong" and lose the error message.
Dialog Error
Preview PowerApps Error

Callback URL not working in Auth0, locally

I am trying to configure login using Auth0. As part of the initial steps, I created an application and added Allowed Callback URLs and Allowed Logout URLs. I have no hosted pages in /login, /login-results, /logout routes. I am just trying to learn working of Auth0 by getting the JWT token and test it in http://jwt.io/.
I tried to use the login UI flow which available out of the box in Auth0. I created the login URL as mentioned in this doc to hit this endpoint
GET https://YOUR_DOMAIN/authorize?audience=API_IDENTIFIER&scope=SCOPE&response_type=code&client_id=YOUR_CLIENT_ID&redirect_uri=https://YOUR_APP/callback&state=STATE
But I am getting this error while executing the endpoint which I created using the credentials of my application with above-mentioned callback URL.
http://127.0.0.1:8080/login-results#error=access_denied&error_description=Service%20not%20found%3A%20name
Endpoint which I generated:
https://fsnd-kavin.auth0.com/authorize?audience=audiencename&response_type=token&client_id={CLIENT_ID}&redirect_uri=http://127.0.0.1:8080/login-results
What is the actual issue? Am I missing any other configurations?
Service Not Found
This error message points to that you passed non existent API identifier as audience. Check that API is created in the API section of Dashboard.

Custom error message on failed authentication in IdentityServer4

I would like to display custom error message when authentication fails in IdentityServer4. Namely I want to show what went wrong, e.g. "invalid redirect url" or "invalid authentication flow". When authentication fails I see only that exception occured but for what happened I need to go into logs. In this case I would like to know that e.g. redirect url is wrong directly. How can I achieve that?
I'm thinking about some exception filter or custom middleware on ASP.NET Core. However it seems to me that exception filter won't work since that is MVC stuff and exception occurs in the IdentityServer middleware. And I am not sure how to create the middleware so it shows the error and also manages to use the same layout and ui parts as in MVC views. Is there another way? Maybe some extension points I did not see?

Prestashop login error: "Details: Error thrown: [object Object]"

In Prestashop backend login page, when I try to login I get the following message:
TECHNICAL ERROR:
Details: Error thrown: [object Object]
Text status: parsererror
Screen Picture:
When the admin login form is submitted an ajax request is sent to the server, please take a look at the response of that ajax request after enabling error debugging, there must be an error shown there. Share the details of that error with us so that we guide you better.
FYI, to enable error debugging in PrestaShop you can follow the steps below.
open file: config/defines.inc.php (using FTP or hosting control panel)
change false-->true:
define('_PS_MODE_DEV_', false);
define('_PS_MODE_DEV_', true);

How to redirect on custom url after NTLM authentication failure

I am using NTLM authentication with ldap.
When i click 'cancel' in the above popup, it gives 'Authorization required' message as below
I want it to redirect on a custom url on 'Cancel' click. How can i achieve it?
Cancel has the same effect as no authentication, so you're going to get a 401 error code for both Cancel and bad authorizations. In that case, you can set up custom URLs for error codes as described here. The custom error is virtual-host scoped if I recall correctly, so this will be shown for all authentication errors for that particular domain.
If you want to get more control of it, you have to prevent the authentication challenge from happening via http at the server level. This means bringing it down to the web application level where you need to make your pages check that authentication has properly occurred. If you're serving static web pages, this obviously won't work.