Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

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
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • 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
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(