-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adicionando configuração do keycloak
- Loading branch information
Samuel Ferino
committed
Apr 14, 2024
1 parent
69bc429
commit cb0dc1a
Showing
9 changed files
with
158 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
from os import urandom | ||
|
||
FLASK_SECRET_KEY = urandom(24) | ||
|
||
LOGSTASH_HOST='localhost' | ||
LOGSTASH_PORT=5000 | ||
LOGGING_FORMAT='%(asctime)s - %(name)s - %(levelname)s - %(message)s' | ||
LOGGING_FORMAT='%(asctime)s - %(name)s - %(levelname)s - %(message)s' | ||
|
||
KEYCLOAK_BASE_URL='http://localhost:8080' | ||
KEYCLOAK_REALM='desafio-devops' | ||
KEYCLOAK_CLIENT_ID='app' | ||
KEYCLOAK_CLIENT_SECRET='iF0lbnfrexgY6Z2xvg4U4uT2ngteFVWO' | ||
KEYCLOAK_REDIRECT_URI='http://localhost:8000/callback' | ||
KEYCLOAK_AUTHORIZATION_URL=f'{KEYCLOAK_BASE_URL}/realms/{KEYCLOAK_REALM}/protocol/openid-connect/auth' | ||
KEYCLOAK_TOKEN_URL=f'{KEYCLOAK_BASE_URL}/realms/{KEYCLOAK_REALM}/protocol/openid-connect/token' | ||
KEYCLOAK_USERINFO_URL=f'{KEYCLOAK_BASE_URL}/realms/{KEYCLOAK_REALM}/protocol/openid-connect/userinfo' | ||
KEYCLOAK_JWKS_URI=f'{KEYCLOAK_BASE_URL}/realms/{KEYCLOAK_REALM}/protocol/openid-connect/certs' | ||
KEYCLOAK_LOGOUT_URL=f'{KEYCLOAK_BASE_URL}/realms/{KEYCLOAK_REALM}/protocol/openid-connect/logout' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
CONTAINER_NAME=keycloak_server | ||
APP_DOCKER=quay.io/keycloak/keycloak | ||
DOCKER_IMAGE_VERSION=24.0.2 | ||
DOCKER_HOST_PORT=8080 | ||
DOCKER_INTERNAL_PORT=8080 | ||
|
||
all: run | ||
.PHONY: all run clean | ||
|
||
run: clean | ||
@echo | ||
@echo "******************** RUNNING DOCKER INSTANCE **********************************" | ||
docker run --net=host --detach --rm --name ${CONTAINER_NAME} -p ${DOCKER_HOST_PORT}:${DOCKER_INTERNAL_PORT} -e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=admin quay.io/keycloak/keycloak:24.0.2 start-dev | ||
@echo | ||
@echo | ||
docker ps | ||
@echo | ||
|
||
|
||
clean: | ||
@echo | ||
@echo "******************** KILLING CONTAINER **********************************" | ||
docker rm -f ${CONTAINER_NAME} | ||
@echo | ||
docker ps | ||
@echo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
docker run -p 8080:8080 -e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=admin quay.io/keycloak/keycloak:24.0.2 start-dev | ||
|
||
docker run --detach --rm -p ${DOCKER_HOST_PORT}:${DOCKER_INTERNAL_PORT} -e KEYCLOAK_ADMIN=admin -e KEYCLOAK_ADMIN_PASSWORD=admin --name ${CONTAINER_NAME} ${APP_DOCKER}:${DOCKER_IMAGE_VERSION} | ||
|