{"id":13609196,"url":"https://github.com/cwaldbieser/jhub_cas_authenticator","last_synced_at":"2026-03-01T21:37:57.813Z","repository":{"id":62572360,"uuid":"103855119","full_name":"cwaldbieser/jhub_cas_authenticator","owner":"cwaldbieser","description":"CAS authenticator for Jupyterhub","archived":false,"fork":false,"pushed_at":"2023-03-17T18:54:21.000Z","size":42,"stargazers_count":23,"open_issues_count":3,"forks_count":12,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-11-28T10:32:07.421Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cwaldbieser.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-09-17T19:17:08.000Z","updated_at":"2025-04-17T13:02:38.000Z","dependencies_parsed_at":"2024-01-17T00:18:38.259Z","dependency_job_id":"5d5b7662-c00e-4aad-89c3-7ee035203400","html_url":"https://github.com/cwaldbieser/jhub_cas_authenticator","commit_stats":{"total_commits":36,"total_committers":4,"mean_commits":9.0,"dds":0.2777777777777778,"last_synced_commit":"ffe254d0eb57016733564f88d177a81745bf2af8"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/cwaldbieser/jhub_cas_authenticator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwaldbieser%2Fjhub_cas_authenticator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwaldbieser%2Fjhub_cas_authenticator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwaldbieser%2Fjhub_cas_authenticator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwaldbieser%2Fjhub_cas_authenticator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cwaldbieser","download_url":"https://codeload.github.com/cwaldbieser/jhub_cas_authenticator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwaldbieser%2Fjhub_cas_authenticator/sbom","scorecard":{"id":313523,"data":{"date":"2025-08-11","repo":{"name":"github.com/cwaldbieser/jhub_cas_authenticator","commit":"ffe254d0eb57016733564f88d177a81745bf2af8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":3,"reason":"Found 6/20 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENCE.txt:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENCE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 16 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T23:39:06.958Z","repository_id":62572360,"created_at":"2025-08-17T23:39:06.958Z","updated_at":"2025-08-17T23:39:06.958Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29984725,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T21:06:37.093Z","status":"ssl_error","status_checked_at":"2026-03-01T21:05:45.052Z","response_time":124,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T19:01:33.196Z","updated_at":"2026-03-01T21:37:57.797Z","avatar_url":"https://github.com/cwaldbieser.png","language":"Python","funding_links":[],"categories":["JupyterHub认证"],"sub_categories":[],"readme":"============================\nJupyterhub CAS Authenticator\n============================\n\nAuthenticate to Jupyterhub using the CAS 3.0 protocol\n(https://apereo.github.io/cas/5.1.x/protocol/CAS-Protocol-Specification.html)\n\n------------\nInstallation\n------------\n\nThis package can be installed with `pip` either from a local git repository or from PyPi.\n\nInstallation from local git repository::\n\n    cd jhub_cas_authenticator\n    pip install .\n\nInstallation from PyPi::\n\n    pip install jhub_cas_authenticator\n\nAlternately, you can add the local project folder must be on your PYTHONPATH.\n\n-------------\nConfiguration\n-------------\n\nYou should edit your :file:`jupyterhub_config.py` to set the authenticator\nclass::\n\n    c.JupyterHub.authenticator_class = 'jhub_cas_authenticator.cas_auth.CASAuthenticator'\n\nYou will also need to add settings specific to the CAS authentication configuration::\n\n    # The CAS URL to redirect unauthenticated users to.\n    c.CASAuthenticator.cas_login_url = 'https://cas.example.net/cas/login'\n\n    # The service URL the CAS server will redirect the browser back to on successful authentication.\n    # If not set, this is set to the same URL the request comes in on.  This will work fine for\n    # simple deployments, but deployments behind a proxy or load banalncer will likely need to\n    # be adjusted so the CAS service redirects back to the *real* login URL for your Jupyterhub.\n    c.CASAuthenticator.cas_service_url = 'https://your-jupyterhub.tld/login'\n\n    # Path to CA certificates the CAS client will trust when validating a service ticket.\n    c.CASAuthenticator.cas_client_ca_certs = '/path/to/ca_certs.pem'\n\n    # The CAS endpoint for validating service tickets.\n    c.CASAuthenticator.cas_service_validate_url = 'https://cas.example.net/cas/p3/serviceValidate'\n\n    # A set of attribute name and value tuples a user must have to be allowed access.\n    c.CASAuthenticator.cas_required_attribs = {('memberOf', 'jupyterhub_users')}\n\n-----------------------------\nJust-in-Time Account Creation\n-----------------------------\n\nIf your Jupyterhub spawner relies on local users to exist for the authenticated\nuser, it can be useful to use `CASLocalAuthenticator` instead of\n`CASAuthenticator`.  The former inherits from `LocalAuthenticator` and has the\nproperty `create_system_users`.  You can use it like this:\n\n.. code:: python\n\n    c.JupyterHub.authenticator_class = 'jhub_cas_authenticator.cas_auth.CASLocalAuthenticator'\n    # The CAS URL to redirect unauthenticated users to.\n    c.CASLocalAuthenticator.cas_login_url = 'https://cas.example.net/cas/login'\n    # The CAS URL for logging out an authenticated user.\n    c.CASLocalAuthenticator.cas_logout_url = 'https://cas.example.net/cas/logout'\n    # The service URL the CAS server will redirect the browser back to on successful authentication.\n    # If not set, this is set to the same URL the request comes in on.  This will work fine for\n    # simple deployments, but deployments behind a proxy or load banalncer will likely need to\n    # be adjusted so the CAS service redirects back to the *real* login URL for your Jupyterhub.\n    c.CASLocalAuthenticator.cas_service_url = 'https://jupyterhub.example.net/login'\n    # Path to CA certificates the CAS client will trust when validating a service ticket.\n    c.CASLocalAuthenticator.cas_client_ca_certs = '/path/to/ca_certs.pem'\n    # The CAS endpoint for validating service tickets.\n    c.CASLocalAuthenticator.cas_service_validate_url = 'https://cas.example.net/cas/p3/serviceValidate'\n    # A set of attribute name and value tuples a user must have to be allowed access.\n    c.CASLocalAuthenticator.cas_required_attribs = {('memberOf', 'jupyterhub_users')}\n    # Allowed logins.\n    c.CASLocalAuthenticator.whitelist = {'waldbiec', 'carl', 'logan'}\n    # Create system users just-in-time.\n    c.CASLocalAuthenticator.create_system_users = True\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcwaldbieser%2Fjhub_cas_authenticator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcwaldbieser%2Fjhub_cas_authenticator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcwaldbieser%2Fjhub_cas_authenticator/lists"}