Metronic - OIDC login redirects to 404 page

I'm running some tests on Metronic Demo 5 Vue (the Q&A site), and want to configure it to use our OIDC authentication server (Keycloak) for authentication. I've removed the code that pops up the stock login page and replaced it with the Keycloak configuration code. That piece works as expected. When I open up the URL I'm immediately taken to my auth server to login. After login, however, the redirect seems to take me to an invalid location, because I immediately see the 404 page.

The valid redirect URI for the webapp is set to "*", so it should redirect to wherever the user initially tried to go. However, I *always* get taken to the 404 page. I'd imagine it has something to do with the OIDC redirect that includes the session state value and all, but I've never encountered this particular error before.

Any tips on where to look to try and correct this?

Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)

Hi,

By default after successful login, we are redirecting users to /dashboard route, you can update this route in file views/crafted/authentication/basic-flow/SignIn.vue.

Not found routes are handled in src/router/index.ts.

{
path: "/:pathMatch(.*)*",
redirect: "/404",
}

Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(