Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(jans-linux-setup): typo #8845

Merged
merged 1 commit into from
Jul 3, 2024

fix(jans-linux-setup): typo

76e643a
Select commit
Loading
Failed to load commit list.
Merged

fix(jans-linux-setup): typo #8845

fix(jans-linux-setup): typo
76e643a
Select commit
Loading
Failed to load commit list.
DryRunSecurity / Authn/Authz Analyzer succeeded Jul 3, 2024 in 3s

DryRun Security

Details

Authn/Authz Analyzer Findings: 3 detected

⚠️ Potential Authn/Authz Function Used or Modified jans-linux-setup/jans_setup/setup_app/installers/jans_saml.py (click for details)
Type Potential Authn/Authz Function Used or Modified
Description The code appears to contain a function named 'install_keycloak', which is likely related to the installation and configuration of an authentication/authorization server like Keycloak. Keycloak is a popular open-source identity and access management (IAM) solution, which is often used for authentication and authorization purposes in web applications.
Filename jans-linux-setup/jans_setup/setup_app/installers/jans_saml.py
CodeLink
)
self.dbUtils.import_ldif(client_ldif_fns)
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)
⚠️ Potential Authn/Authz Function Used or Modified jans-linux-setup/jans_setup/setup_app/installers/jans_saml.py (click for details)
Type Potential Authn/Authz Function Used or Modified
Description The code contains functions related to authentication or authorization, specifically the install_keycloack() and deploy_jans_keycloak_providers() functions. These functions appear to be setting up and configuring a Keycloak identity provider, which is a common authentication and authorization service used in web applications.
Filename jans-linux-setup/jans_setup/setup_app/installers/jans_saml.py
CodeLink
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_keycloak_providers()
self.config_api_idp_plugin_config()
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)
⚠️ Potential Authn/Authz Function Used or Modified jans-linux-setup/jans_setup/setup_app/installers/jans_saml.py (click for details)
Type Potential Authn/Authz Function Used or Modified
Description The code contains references to Keycloak, which is an identity and access management (IAM) solution that provides authentication and authorization functionality. The kc_admin_realm, kc_admin_username, create_clients(), and install_keycloak() methods suggest that the code is interacting with the Keycloak system, which is likely related to authentication and authorization processes.
Filename jans-linux-setup/jans_setup/setup_app/installers/jans_saml.py
CodeLink
Config.scheduler_dir = os.path.join(Config.opt_dir, 'kc-scheduler')
Config.idp_config_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_keycloak()
self.install_keycloak_scheduler()
def render_import_templates(self):