Even though both are same, Im getting the error: The 'redirect_uri' parameter must be a Login redirect URI in the client app settings

Viewed 2182

in my okta application settings ,

LOGIN

Login redirect URIs :http://localhost:3000/users/callback & http://localhost:3000/

Logout redirect URIs http://localhost:3000/

and in app.js,


onst oidc = new ExpressOIDC({

  issuer: "https://dev-hidden.okta.com/oauth2/default",

  client_id: "hidden",

  

  client_secret: "hidden",

  appBaseUrl: "http://localhost:3000",

  redirect_uri: 'http://localhost:3000/users/callback',

  scope: "openid profile",

  routes: {

    login: {

      path: "/users/login"

    },

    callback: {

      path: "/users/callback",

      defaultRedirect: "/dashboard"

as u can see redirect uri= logi redirect uri , still im getting the error

I have tried to add the base url along with the main uri which I needed and yet no success.... any solutions?

0 Answers
Related