{"id":43476750,"url":"https://github.com/oarepo/cesnet-openid-remote","last_synced_at":"2026-02-03T07:42:16.664Z","repository":{"id":53013347,"uuid":"337074649","full_name":"oarepo/cesnet-openid-remote","owner":"oarepo","description":"CESNET OIDC Authentication backend for OARepo","archived":false,"fork":false,"pushed_at":"2024-09-05T09:37:49.000Z","size":91,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2026-01-04T22:45:46.565Z","etag":null,"topics":["authentication"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oarepo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.rst","dei":null}},"created_at":"2021-02-08T12:51:19.000Z","updated_at":"2024-09-05T09:37:16.000Z","dependencies_parsed_at":"2022-09-08T10:25:07.006Z","dependency_job_id":"553be7dd-65fa-4db7-8931-1a6a05cb8277","html_url":"https://github.com/oarepo/cesnet-openid-remote","commit_stats":{"total_commits":24,"total_committers":1,"mean_commits":24.0,"dds":0.0,"last_synced_commit":"d4c65263a5e9e47c9412e7e9130a4cd355dcd69a"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/oarepo/cesnet-openid-remote","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oarepo%2Fcesnet-openid-remote","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oarepo%2Fcesnet-openid-remote/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oarepo%2Fcesnet-openid-remote/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oarepo%2Fcesnet-openid-remote/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oarepo","download_url":"https://codeload.github.com/oarepo/cesnet-openid-remote/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oarepo%2Fcesnet-openid-remote/sbom","scorecard":{"id":700594,"data":{"date":"2025-08-11","repo":{"name":"github.com/oarepo/cesnet-openid-remote","commit":"4c4f53aaef6ca47ce01e48dc88823f38ba2267b5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.2,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/10 approved changesets -- score normalized to 0","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":"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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 0 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:29","Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:28","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/main.yml:1","Info: no jobLevel write permissions found"],"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":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/oarepo/cesnet-openid-remote/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/oarepo/cesnet-openid-remote/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/oarepo/cesnet-openid-remote/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:70: update your workflow using https://app.stepsecurity.io/secureworkflow/oarepo/cesnet-openid-remote/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/oarepo/cesnet-openid-remote/main.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/oarepo/cesnet-openid-remote/main.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/oarepo/cesnet-openid-remote/main.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/oarepo/cesnet-openid-remote/main.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/oarepo/cesnet-openid-remote/main.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:67: update your workflow using https://app.stepsecurity.io/secureworkflow/oarepo/cesnet-openid-remote/main.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/main.yml:32","Warn: pipCommand not pinned by hash: .github/workflows/main.yml:33","Info:   0 out of   9 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"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":"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: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/main.yml:50"],"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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":"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":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 24 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-22T05:07:39.592Z","repository_id":53013347,"created_at":"2025-08-22T05:07:39.592Z","updated_at":"2025-08-22T05:07:39.592Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29037532,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T06:39:36.383Z","status":"ssl_error","status_checked_at":"2026-02-03T06:39:32.787Z","response_time":96,"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":["authentication"],"created_at":"2026-02-03T07:42:16.206Z","updated_at":"2026-02-03T07:42:16.659Z","avatar_url":"https://github.com/oarepo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![image][0]][1]\n[![image][2]][3]\n[![image][4]][5]\n[![image][6]][7]\n\n  [0]: https://github.com/oarepo/cesnet-openid-remote/workflows/CI/badge.svg\n  [1]: https://github.com/oarepo/cesnet-openid-remote/actions?query=workflow%3ACI\n  [2]: https://img.shields.io/github/tag/oarepo/cesnet-openid-remote.svg\n  [3]: https://github.com/oarepo/cesnet-openid-remote/releases\n  [4]: https://img.shields.io/pypi/dm/cesnet-openid-remote.svg\n  [5]: https://pypi.python.org/pypi/cesnet-openid-remote\n  [6]: https://img.shields.io/github/license/oarepo/cesnet-openid-remote.svg\n  [7]: https://github.com/oarepo/cesnet-openid-remote/blob/master/LICENSE\n\n\n# CESNET OIDC Auth backend for OARepo\n\nThis remote backend is appropriate for e.g. a SPA application which communicates\nwith Invenio via REST calls. It also manages mapping of external CESNET (Perun) groups\nonto internal Invenio roles and Invenio user-role synchronization using this mapping.\n\n## Installation\n\nCesnet OpenID Remote is on PyPI so all you need is:\n\n``` console\n$ pip install cesnet-openid-remote\n```\n\n\u003e **Warning**\n\u003e The following section is not supported in the current version.\n\nThen run the following to ensure `cesnet_group` and `cesnet_group_role` mapping database tables\nare created:\n```console\n$ invenio alembic upgrade heads\n```\n\n## Configuration\n\n1. Register a new application with CESNET OIDC Provider. When registering the\n   application ensure that the *Redirect URI* points to:\n```url\nhttps://\u003cmy_invenio_site\u003e:5000/api/oauth/authorized/eduid/\n```\n2. Grab the *Client ID* and *Client Secret* after registering the application\n   and add them to your ENVIRONMENT (`.env`):\n```python\nOPENIDC_KEY=*Client ID*\nOPENIDC_SECRET=*Client Secret*\n```\n4. Now access the login page from your SPA using CESNET OAuth:\n```javascript\n    window.location =\n    \"https://\u003cmy_invenio_site\u003e:5000/api/oauth/login/eduid?next=\u003cmy_next_page\u003e\";\n```\nBy default the CESNET module will try first look if a link already exists\nbetween an eduID account and a user. If no link is found, it will be created.\nAny external Perun groups will be automatically linked to invenio roles on\neach login.\nFor more details you can play with a :doc:`working example \u003cexamplesapp\u003e`.\n\nIf you wish to prevent this module from managing (adding/removing users to/from role)\ncertain Invenio roles, configure such roles in:\n\n```python\nOAUTHCLIENT_CESNET_OPENID_PROTECTED_ROLES = ['admin']\n\"\"\"Role names that shouldn't be managed/(un)assigned to users by this extension.\"\"\"\n```\n\n5. Add the remote application to the site's `invenio.cfg`:\n\n```py\nfrom cesnet_openid_remote import remote\n\nOAUTHCLIENT_REMOTE_APPS = {\n    \"perun\": remote.REMOTE_APP\n}  # configure external login providers\n```\n\n## CLI\n\n\u003e **Warning**\n\u003e The following section is not supported in the current version.\n\nTo manage CESNET group to Invenio Role mappings you can use the following CLI command group:\n```\n$ invenio cesnet:group --help\nUsage: invenio cesnet:group [OPTIONS] COMMAND [ARGS]...\n\n  Management commands for CESNET external group mappings.\n\nOptions:\n  --help  Show this message and exit.\n\nCommands:\n  add     Add a CESNET group to Invenio Role.\n  create  Create an external CESNET group.\n  list    List external CESNET groups.\n  remove  Remove a CESNET group from an Invenio Role.\n```\n\n## Customization\n\n\u003e **Warning**\n\u003e The following section is not supported in the current version.\n\nTo customize group handling and validation, refer to your custom validation and parse\nfunctions using the following config values:\n\n````python\nOAUTHCLIENT_CESNET_OPENID_GROUP_VALIDATOR = 'cesnet_openid_remote.groups.validate_group_uri'\n\"\"\"Function used to validate external group URI.\"\"\"\n\nOAUTHCLIENT_CESNET_OPENID_GROUP_PARSER = 'cesnet_openid_remote.groups.parse_group_uri'\n\"\"\"Function used to parse external group URI to (UUID, extra_data) pair.\"\"\"\n````\n\nFurther documentation is available on\nhttps://cesnet-openid-remote.readthedocs.io/\n\nCopyright (C) 2023 CESNET.\n\nCESNET-OpenID-Remote is free software; you can redistribute it and/or\nmodify it under the terms of the MIT License; see LICENSE file for more\ndetails.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foarepo%2Fcesnet-openid-remote","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foarepo%2Fcesnet-openid-remote","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foarepo%2Fcesnet-openid-remote/lists"}