Skip to content

APISIX + Keycloak + Whoami. Auto configure apisix with keycloak as IDM and whoami service as upstream.

License

Notifications You must be signed in to change notification settings

arulrajnet/apisix-oidc-keycloak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

APISIX OIDC + Keycloak + whoami

This example repo describe how to access whoami/any service securely via APISIX OIDC with keycloak.

Prerequisites

  • Docker 24.0.6 or latest

  • Docker compose v2.22.0 or latest

How to use

Explanation

TBD

Architecture

  • Keycloak 22.0.3

  • APISIX 3.6.0

  • keycloak-config-cli 5.8.0-22.0.0

  • Postgres 15.4

Keycloak

Keycloak is an OpenID Connect Identity Provider (OIDC IDP).

Keycloak config init

Load the keycloak config into the keycloak using their API. We used this only to create realm, clients and users.

APISIX

APISIX is an advance reverse proxy.

APISIX init

This is just a shell script with curl command against APISIX admin API.

This will create

  • Service

  • Routes

  • Plugins

Whoami

This is mock app. We used this as protected endpoints.

Author

Follow @arulrajnet on Twitter

@arulrajnet

About

APISIX + Keycloak + Whoami. Auto configure apisix with keycloak as IDM and whoami service as upstream.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages