Skip to content

Commit

Permalink
fix(jans-linux-setup): typo
Browse files Browse the repository at this point in the history
Signed-off-by: Mustafa Baser <mbaser@mail.com>
  • Loading branch information
devrimyatar committed Jul 3, 2024
1 parent c0154b3 commit 76e643a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions jans-linux-setup/jans_setup/setup_app/installers/jans_saml.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ def __init__(self):
Config.scheduler_dir = os.path.join(Config.opt_dir, 'kc-scheduler')

Config.idp_config_hostname = Config.hostname
Config.keycloack_hostname = Config.hostname
Config.keycloak_hostname = Config.hostname

self.kc_admin_realm = 'master'
self.kc_admin_username = 'admin'

def install(self):
"""installation steps"""
self.create_clients()
self.install_keycloack()
self.install_keycloak()
self.install_keycloak_scheduler()

def render_import_templates(self):
Expand Down Expand Up @@ -151,7 +151,7 @@ def create_clients(self):
)
self.dbUtils.import_ldif(client_ldif_fns)

def install_keycloack(self):
def install_keycloak(self):
self.logIt("Installing KC", pbar=self.service_name)
base.unpack_zip(self.source_files[3][0], self.idp_config_data_dir, with_par_dir=False)

Expand All @@ -160,17 +160,17 @@ def install_keycloack(self):
Config.templateRenderingDict['jans_auth_token_endpoint'] = jans_auth_config['tokenEndpoint']

self.update_rendering_dict()

self.renderTemplateInOut(self.idp_config_fn, self.templates_folder, os.path.join(self.idp_config_data_dir, 'conf'))
self.chown(self.idp_config_data_dir, Config.jetty_user, Config.jetty_group, recursive=True)


def service_post_setup(self):
self.deploy_jans_keycloack_providers()
self.deploy_jans_keycloak_providers()
self.config_api_idp_plugin_config()


def deploy_jans_keycloack_providers(self):
def deploy_jans_keycloak_providers(self):
self.copyFile(self.source_files[0][0], self.idp_config_providers_dir)
self.copyFile(self.source_files[1][0], self.idp_config_providers_dir)
base.unpack_zip(self.source_files[2][0], self.idp_config_providers_dir)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"trustedIdpDn": "ou=trusted-idp,o=jans",
"enabled": "true",
"selectedIdp": "keycloak",
"serverUrl": "https://${keycloack_hostname}/kc",
"serverUrl": "https://${keycloak_hostname}/kc",
"realm": "${jans_idp_realm}",
"clientId": "${jans_idp_client_id}",
"clientSecret": "${jans_idp_client_secret}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ http-max-queued-requests=1000
# Enable the http listener
http-enabled=true
# set application hostname
hostname=https://%(keycloack_hostname)s/kc
hostname=https://%(keycloak_hostname)s/kc

# http listen address
http-host=127.0.0.1
Expand Down

0 comments on commit 76e643a

Please sign in to comment.