{"id":18965868,"url":"https://github.com/wso2/balana","last_synced_at":"2025-05-14T18:03:42.057Z","repository":{"id":14492391,"uuid":"17205250","full_name":"wso2/balana","owner":"wso2","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-26T09:32:13.000Z","size":4358,"stargazers_count":122,"open_issues_count":42,"forks_count":113,"subscribers_count":108,"default_branch":"master","last_synced_at":"2025-04-13T10:55:07.821Z","etag":null,"topics":["identity","java","wso2-balana","xacml"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wso2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-02-26T09:17:19.000Z","updated_at":"2025-03-26T08:18:21.000Z","dependencies_parsed_at":"2025-04-13T08:58:54.502Z","dependency_job_id":"b6e65079-8f2b-44f4-af51-66f46af349b1","html_url":"https://github.com/wso2/balana","commit_stats":{"total_commits":262,"total_committers":45,"mean_commits":5.822222222222222,"dds":0.6717557251908397,"last_synced_commit":"6198aab246b583f0c76f363dc8349d3a3ea41d1c"},"previous_names":[],"tags_count":55,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wso2%2Fbalana","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wso2%2Fbalana/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wso2%2Fbalana/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wso2%2Fbalana/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wso2","download_url":"https://codeload.github.com/wso2/balana/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254198452,"owners_count":22030964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["identity","java","wso2-balana","xacml"],"created_at":"2024-11-08T14:33:37.468Z","updated_at":"2025-05-14T18:03:36.988Z","avatar_url":"https://github.com/wso2.png","language":"Java","readme":"WSO2 Balana Implementation\n==========================\n\n---\n\n|  Branch | Build Status |\n| :------------ |:-------------\n| master      | [![Build Status](https://wso2.org/jenkins/buildStatus/icon?job=forked-dependencies/balana)](https://wso2.org/jenkins/job/forked-dependencies/job/balana) |\n\n---\n\n## Welcome to WSO2 Balana\nBalana is WSO2's open source implementation of the XACML specification building on [Sun's XACML Implementation](http://sunxacml.sourceforge.net/). As the name suggests Balana(the fortress) is a powerful entitlement engine to externalize authorization from your applications. With it's modular architecture you can easily develop a fully fledged entitlement solution in no time.\n\n\n#### Specifications Supported by Balana\nBalana supports the [XACML 3.0](http://docs.oasis-open.org/xacml/3.0/xacml-3.0-core-spec-os-en.html), [2.0](https://docs.oasis-open.org/xacml/2.0/access_control-xacml-2.0-core-spec-os.pdf), [1.1](https://d9db56472fd41226d193-1e5e0d4b7948acaf6080b0dce0b35ed5.ssl.cf1.rackcdn.com/committees/xacml/repository/cs-xacml-specification-1.1.pdf) and [1.0](https://www.oasis-open.org/committees/download.php/2406/oasis-xacml-1.0.pdf) specifications.\n\n\n### Installation\nAdd the following dependency to your pom.\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eorg.wso2.balana\u003c/groupId\u003e\n    \u003cartifactId\u003eorg.wso2.balana\u003c/artifactId\u003e\n    \u003cversion\u003e1.1.12\u003c/version\u003e\n \u003c/dependency\u003e\n```\n\n### Getting Started\nYou can easily create a default instance of Balana with a file based policy repository as follows.\n\n```java\nprivate static Balana balana;\n\nprivate static void initBalana() {\n\n        try{\n            // Using file based policy repository. so set the policy location as a system property\n            String policyLocation = (new File(\".\")).getCanonicalPath() + File.separator + \"resources\";\n            System.setProperty(FileBasedPolicyFinderModule.POLICY_DIR_PROPERTY, policyLocation);\n        } catch (IOException e) {\n            System.err.println(\"Can not locate policy repository\");\n        }\n        // Create default instance of Balana\n        balana = Balana.getInstance();\n    }\n```\n\n### Running Samples\n1) Install Java SE Development Kit 1.8\n2) Install Apache Maven 3.x.x(https://maven.apache.org/download.cgi#)\n3) Get a clone from https://github.com/wso2/balana.git or download the source\n4) Run ``mvn clean install`` from balana directory\n5) Move to balana/modules/balana-samples/`\u003cselected sample\u003e`\n6) Execute run script\n\nHere are the samples included.\n\n* [kmarket-trading-sample](modules/balana-samples/kmarket-trading-sample)\n* [hierarchical-resource](modules/balana-samples/hierarchical-resource)\n* [custom-combining-algo](modules/balana-samples/custom-combining-algo)\n* [web-page-image-filtering](modules/balana-samples/web-page-image-filtering)\n\n\n### License\n\nLicense of Sun's XACML implementation can be found at [here](http://sunxacml.sourceforge.net/license.txt). But WSO2 Balana implementation is released under [Apache2 license](http://www.apache.org/licenses/LICENSE-2.0).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwso2%2Fbalana","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwso2%2Fbalana","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwso2%2Fbalana/lists"}