-
The API Portal is returning a generic “Something went wrong“ (see the image below) error instead of redirecting to the login page when the endpoints are protected and the user is not logged in. This is due to the When logged in, the API Portal works correctly. I suspect this is a configuration issue, but I don't know what I'm missing. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
Hi, how can the API Portal redirect you to a login page? It does not know whether you are using a login page or not or where it is served 🤔 |
Beta Was this translation helpful? Give feedback.
-
Hi @gbarbon, if you want to expose the API Portal to invoke API under authentication, you should setup it under a login page before the portal. Or leave the user insert the authentication headers. |
Beta Was this translation helpful? Give feedback.
-
You're both right. The description of the problem I have written is a bit misleading. This is not actually an API Portal issue, but it's more related to the API Gateway I guess. The redirect should be carried by the API Gateway, but it's not happening as intended. Just to give some more context, in the same project there is the Backoffice that has the redirect correctly working when the user is not authenticated. |
Beta Was this translation helpful? Give feedback.
You're both right. The description of the problem I have written is a bit misleading. This is not actually an API Portal issue, but it's more related to the API Gateway I guess. The redirect should be carried by the API Gateway, but it's not happening as intended. Just to give some more context, in the same project there is the Backoffice that has the redirect correctly working when the user is not authenticated.