rgl / terraform-keycloak

Keycloak playground

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

Build status

This initializes a Keycloak instance using the mrparkers/terraform-provider-keycloak Terraform provider.

This will:

  • Create a test Keycloak instance inside a docker container using docker compose.
  • Create the example realm.
    • Create the alice user.
    • Create the administrators group.
      • Assign the example-go-saml client administrator role.
      • Add the alice user as a member.
    • Create the example-csharp-public-device client
    • Create the example-go-confidential client.
    • Create the example-go-saml client.
      • Create the administrator role.
    • Create the example-react-public client.
  • Start the example example-csharp-public-device client (and test it).
  • Start the example example-go-confidential client (and test it).
  • Start the example example-go-saml client (and test it).
  • Start the example example-react-public client (and test it).

Usage

Install docker compose.

Add the following to your machine hosts file:

127.0.0.1 keycloak.test
127.0.0.1 mail.test
127.0.0.1 example-go-confidential.test
127.0.0.1 example-go-saml.test
127.0.0.1 example-react-public.test

Start the environment:

./create.sh

Try the example applications displayed by the above command. E.g., try the OpenID Connect Confidential Client as the alice:alice user at:

http://example-go-confidential.test:8081/auth/login

When anything goes wrong, you can try to troubleshoot at:

Destroy everything:

./destroy.sh

List this repository dependencies (and which have newer versions):

export GITHUB_COM_TOKEN='YOUR_GITHUB_PERSONAL_TOKEN'
./renovate.sh

Alternatives

About

Keycloak playground


Languages

Language:Go 25.5%Language:TypeScript 24.2%Language:Shell 19.5%Language:C# 9.5%Language:HCL 8.8%Language:Dockerfile 6.8%Language:JavaScript 3.2%Language:Python 1.0%Language:HTML 0.9%Language:Makefile 0.6%