https://github.com/jonanv/keycloak-nginx-oauth2-proxy-docker
KeyCloak, nginx, oauth2-proxy with docker
https://github.com/jonanv/keycloak-nginx-oauth2-proxy-docker
docker nginx oauth2-proxy
Last synced: about 2 months ago
JSON representation
KeyCloak, nginx, oauth2-proxy with docker
- Host: GitHub
- URL: https://github.com/jonanv/keycloak-nginx-oauth2-proxy-docker
- Owner: jonanv
- Created: 2025-08-05T00:00:51.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-08-05T00:59:55.000Z (10 months ago)
- Last Synced: 2025-08-05T02:38:00.703Z (10 months ago)
- Topics: docker, nginx, oauth2-proxy
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# How to Install Keycloak with Nginx Using Docker Compose
## Prerequisites:
We must've installed and understood:
1. Docker
2. Docker Compose
3. cURL
## Testing Keycloak endpoint
Real Settings -> OpenID Endpoint Configuration -> "token_endpoint":"http://localhost:8040/realms/master/protocol/openid-connect/token"
```
curl -H "Content-Type: application/x-www-form-urlencoded" -d "client_id=admin-cli" -d "username=admin" -d "password=admin" -d "grant_type=password" http://localhost:8040/realms/master/protocol/openid-connect/token
```
# Auth2
- your-client-secret por el secreto real del cliente configurado en Keycloak.
- oauth2-proxy es el nombre del client creado en Keycloak.
- random-32-byte-secret== lo puedes generar con este comando:
```bash
openssl rand -base64 24
```
# Crea un Realm llamado:
- Dentro del Realm , crea un Client:
- Client ID: oauth2-proxy
- Client Protocol: openid-connect
- Access Type: confidential
- Root URL: http://localhost:8040
- Valid Redirect URIs:
```bash
http://localhost:8040/oauth2/callback
```