kc_idp_hint to choose identity provider with keycloak

lethargos

Well-Known Member
Jun 10, 2017
142
6
58
74
Hello,

When proxmox authenticates against keycloak, you can configure the issuer-url for keycloak using the following url:

Code:
https://example.com/realms/my_realm

And this works just ok in my case. Now, with keycloak there's an option for the client to specify what identity provider should be used by adding the url parameter `kc_idp_hint`. Now, adding this directly to the abovementioned URL won't work, because proxmox will use that URL to authenticate against various other endpoints and the parameter will result in a 500 error.

Any ideas how this could be achieved so that the user will be redirected to the identity provider without having to manually click on it on the keycloak page?
There is a way to configure a default identity provider in keycloak, but this will apply to the whole realm, so there won't be any difference between different clients that might need different providers. Let alone the fact that local users configured on that realm won't be accessible anymore, because the default will be the redirection to that identity provider.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!