<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D51Y000069OMSvSAOOkta Classic EngineAdministrationAnswered2020-05-20T17:58:10.000Z2019-04-12T14:00:16.000Z2020-05-20T17:58:10.000Z

FabioF.44526 (Customer) asked a question.

Implicit Callback not found on this server - react and node express - deploy on Azure

Good morning,

I've an issue with the deployment of my react app on Azure web app service.

I've followed this guide: https://developer.okta.com/blog/2018/07/10/build-a-basic-crud-app-with-node-and-react in local environment it works, but when I've tried to deploy on Azure app service the login with okta doesn't work.

So let me explain. I've uploaded node express server on Azure node app service. The react frontend i've uploaded the "npm run build" result in an other Azure app service.

I've added the Login redirect URI and trusted origins (cors) on okta admin panel.

But during the login the online version of my app replay this issue: "Not Found The requested URL /implicit/callback was not found on this server." and the URL is "https://supportexor.azurewebsites.net/implicit/callback*id_token=qwerqwerqwerqwerqwerqwer" .

Many thanks in advance

Regards

Fabio


  • Hi Fabio,

     

    This issue occurs because the Single Pace App is handled by a single file and, because of this, all routing is happening on client side.

    To resolve this issue, you can configure your server side routing to serve index.html for all virtual paths.

     

    Dragos Gaftoneanu

    Developer Support Engineer

    Okta Global Customer Care

    Expand Post
    Selected as Best
  • Hi Fabio,

     

    This issue occurs because the Single Pace App is handled by a single file and, because of this, all routing is happening on client side.

    To resolve this issue, you can configure your server side routing to serve index.html for all virtual paths.

     

    Dragos Gaftoneanu

    Developer Support Engineer

    Okta Global Customer Care

    Expand Post
    Selected as Best
  • RobertB.20802 (Customer)

    when I do this, the okta-token-storage key is not being added to localStorage. This makes the call to this.oktaAuth.isAuthenticated() fail and even though the login works (i.e. i'm authenticated), my app just returns to the login screen.

This question is closed.
Loading
Implicit Callback not found on this server - react and node express - deploy on Azure