Kong and KeyCloak with multiple Realms

Hi,

I have successfully setup Kong and KeyCloak using OIDC plugin. My frontend application has two types of users - Web Users and Mobile app users. I need to authenticate these users from different Realms.

  1. Web Users from - from Realm A
  2. Mobile app users from - from Realm B

E.g. if a request header of api call contains “Web” as channel in it is authenticated from Realm A.

and a request header of api call contains “Mobile” as channel in it is authenticated from Realm B.

I couldn’t find if OIDC support two realms. One Realm is working fine for me. Is there any way I can accomplish this?

Thanks,

Depends on what authentication method you use, you can authenticate different realms (even different idps)

Here is a KB article you might find useful

https://support.konghq.com/support/s/article/Does-the-openid-connect-plugin-support-multiple-IdPs

Thanks for the article. I have checked and its possible to accomplish this using OpenID Connect but its a paid solution.

Is it possible to do this using some open source or free solution such as OIDC plugin which is free.

Regards,