1

I'm working with kong-oidc plugin using keycloack (https://github.com/nokia/kong-oidc) as authentication provider.

The configuration works as expected, (i use konga as interface). The login procedure is fine.

Now i need to logout but i don't understand how to reach the logout endpoint.

How can i logout from the application ?

enter image description here

dna
  • 2,097
  • 1
  • 11
  • 35

1 Answers1

1

After some test, i found a solution and it was simplier than expected.

With my oidc configuration, i just needed to add a route logout to to the service that uses the plugin.

This issue discussion clarify some aspects https://github.com/nokia/kong-oidc/issues/30#issuecomment-487464297

enter image description here

dna
  • 2,097
  • 1
  • 11
  • 35
  • What Kong version did you use? I'm using 2.0.3. I install kong-oidc globally and have service named "order" with 2 routes: - "/order" with "Strip Path" is true - "/logout" with "Strip Path" is false when I call "https://example.com/logout" and get "message: 'no Route matched with those values'" Wondering what did I miss – kvuong Aug 04 '22 at 09:26
  • I use kong:2.3.2-alpine (from my dockerfile) – dna Aug 04 '22 at 09:43
  • Could you please share your Dockerffile or configurations of your Service/Routes? Does our upstream service need to have /logout route as well? Thank you very much! – kvuong Aug 04 '22 at 09:46
  • i just have the dockerfile https://jpst.it/2VLox. The precondition is that you use the kong-oidc plugin. The interface you see is from Konga https://github.com/pantsel/konga. To use logout you should define the logout route (as in the picture) for the service that use the kong-oidc plugin – dna Aug 04 '22 at 10:01
  • kong-oidc has that you install from lua is not the latest version. The latest version resolve a bug. If you see my dockerfile i build kong-oidc from source, to do that just clone kong-oidc from github https://github.com/nokia/kong-oidc and build the dockerfile – dna Aug 04 '22 at 10:07
  • I still can't get it work, here are my configurations, please help me review it https://jpst.it/2VObZ – kvuong Aug 05 '22 at 05:32