Changeset View
Changeset View
Standalone View
Standalone View
docker/services/keycloak/keycloak_swh_setup.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (C) 2020-2021 The Software Heritage developers | # Copyright (C) 2020-2021 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU Affero General Public License version 3, or any later version | # License: GNU Affero General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
import logging | import logging | ||||
from keycloak import KeycloakAdmin | |||||
from keycloak import KeycloakAdmin | |||||
SERVER_URL = "http://localhost:8080/keycloak/auth/" | SERVER_URL = "http://localhost:8080/keycloak/auth/" | ||||
REALM_NAME = "SoftwareHeritage" | REALM_NAME = "SoftwareHeritage" | ||||
CLIENT_WEBAPP_NAME = "swh-web" | CLIENT_WEBAPP_NAME = "swh-web" | ||||
CLIENT_DEPOSIT_NAME = "swh-deposit" | CLIENT_DEPOSIT_NAME = "swh-deposit" | ||||
ADMIN = {"username": "admin", "password": "admin"} | ADMIN = {"username": "admin", "password": "admin"} | ||||
▲ Show 20 Lines • Show All 254 Lines • Show Last 20 Lines |