question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

keycloak redirect

See original GitHub issue

Hello. I managed to configure keycloak authenication. And it works.

If I use "loginStyle": "popup" it works as expected.

The only problem is that if I use "loginStyle": "redirect" (and I would like to use this method), even in case of a successful authentication, I’m redirected back to the login page. However, if in the browser I change the URL to http://server/studyList, I’m actually able to see the study list, and at the same time, in keycloak, the user has a session and so on.

If in /opt/ohif/bundle/programs/server/packages/oauth.js, in var config = { I force the redirectUrl to “/studyList”, then I’m able to use redirect login style.

Do you have any suggestion or experience?

Thanks.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

9reactions
swederikcommented, Sep 25, 2018

Yep, there is an ‘Implicit Flow Enabled’ toggle when you set up a Keycloak client. It’s disabled by default, but you need to enable it.

screen shot 2018-09-25 at 11 09 58

2reactions
alcircommented, Sep 25, 2018

It works! Thank you very much!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to redirect keyclock to application's page and get token
In Keycloak administration interface go to "Authentication" then to the "Flows" tab. Select "registration" in the top left drop-down to ...
Read more >
Securing Applications and Services Guide - Keycloak
It allows you to redirect unauthenticated users of the web application to the Keycloak login page, but send an HTTP 401 status code...
Read more >
Initial login to Keycloak and configure a redirect - v. 2.x
Before you start using Console, you should configure a redirect in Keycloak to allow access to Console using the Console host name or...
Read more >
Keycloak Redirect URL - Zerto Knowledge Portal
Keycloak Redirect URL ; 1. Log in to Keycloak (https://ip/auth) and select the desired realm. ; 2. Go to Clients and select the...
Read more >
Keycloak Always redirect to /auth - Red Hat
Try to autenticate in the application. The browser is redirected to localhost:8080/auth; You should be redirect to the correct key cloak application.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found