Jitender Singh
07/29/2022, 12:04 PM<https://my-gooddata-hosted-url/appLogin?redirectTo=https%3A%2F%2Flocalhost%3A3001%2Freporting>
with error showing as JSON
{
"title": "Not Found",
"status": 404,
"detail": "404 NOT_FOUND \"User is not registered\"",
"traceId": "9959ed5ff1d5e8f8"
}
Now I want to handle a usecase wheneven /appLogin?redirectTo=someurl
encounters 404 , It should capture and redirectTo url and append some query params to it and redirect back to URL without impacting it's original behavior, for this case it should be someurl?query=queryValue
Jitender Singh
08/01/2022, 11:12 AMJitender Singh
08/05/2022, 2:15 PMJan Rehanek
08/05/2022, 2:22 PMJan Rehanek
08/05/2022, 2:22 PMJitender Singh
08/05/2022, 2:39 PM<https://my-gooddata-hosted-url/appLogin?redirectTo=https%3A%2F%2Flocalhost%3A3001%2Freporting>
we lost the control over it, so we can't do anything at this point of this , so expecting some solution from gooddata teamPeter Plochan
08/08/2022, 12:36 PM/appLogin?redirectTo=<some_url>
, the standard OAuth 2.0 authentication code flow with the OIDC provider is initiated. This means the user-agent goes through the series of redirections (HTTP 302) between the GD.CN (resource server) and the OIDC provider/issuer (authorization server) until the user is successfully logged in (obtains proper session cookies containing access/ID tokens). When the user is successfully “logged in”, they are directly redirected to the <some_url>
provided by the redirectTo
query parameter. If this <some_url>
tries to use any GD.CN backend (REST) API, the mentioned session cookies are used to identify the user within the GD.CN. Here, if the user is not registered within the GD.CN metadata as well (see this article for more info), the 404 is returned with the “User is not registered” message.
This all means that no 404s should go from the /appLogin
endpoint, but from any other resource endpoint of the GD.CN you are trying to call originally via the frontend application. Therefore, there’s no such use-case with “encountering 404 on /appLogin
endpoint”.
If you are really encountering 404s as the direct response from the /appLogin
endpoint, could you please provide us the network log (e.g. from the browser’s developer console)? Thanks.Narinder Kumar
08/26/2022, 8:32 AMNarinder Kumar
08/30/2022, 6:20 AMPeter Plochan
08/30/2022, 7:01 AMNarinder Kumar
08/30/2022, 7:39 AMJan Soubusta
08/30/2022, 9:28 AMNarinder Kumar
08/30/2022, 10:52 AMJitender Singh
09/05/2022, 7:37 AMLubos Hilse
09/05/2022, 9:19 AMJitender Singh
09/05/2022, 11:28 AMLubos Hilse
09/05/2022, 11:55 AMJitender Singh
09/06/2022, 6:11 AMLubos Hilse
09/06/2022, 6:15 AMJitender Singh
09/06/2022, 6:34 AMJitender Singh
09/06/2022, 3:30 PMMartin Svadlenka
09/07/2022, 11:50 AMJitender Singh
09/12/2022, 11:12 AMJan Soubusta
09/12/2022, 12:30 PMLubos Hilse
09/12/2022, 12:33 PMJitender Singh
09/12/2022, 12:44 PMLubos Hilse
09/12/2022, 12:55 PMLubos Hilse
10/10/2022, 11:05 AMLubos Hilse
10/11/2022, 12:50 PMLubos Hilse
10/12/2022, 2:25 PMJitender Singh
10/12/2022, 2:35 PM