{"id":32164483,"url":"https://github.com/rmparr/oriza","last_synced_at":"2026-02-19T08:02:16.060Z","repository":{"id":51201310,"uuid":"356933894","full_name":"rmparr/oriza","owner":"rmparr","description":"A small library to add authorization to Elixir functions.","archived":false,"fork":false,"pushed_at":"2021-05-20T08:51:01.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-12T03:43:47.393Z","etag":null,"topics":["authorization","elixir"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rmparr.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-11T17:28:58.000Z","updated_at":"2021-05-20T08:51:03.000Z","dependencies_parsed_at":"2022-09-19T05:30:22.620Z","dependency_job_id":null,"html_url":"https://github.com/rmparr/oriza","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rmparr/oriza","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmparr%2Foriza","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmparr%2Foriza/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmparr%2Foriza/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmparr%2Foriza/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rmparr","download_url":"https://codeload.github.com/rmparr/oriza/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmparr%2Foriza/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29608152,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T06:47:36.664Z","status":"ssl_error","status_checked_at":"2026-02-19T06:45:47.551Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["authorization","elixir"],"created_at":"2025-10-21T14:46:42.611Z","updated_at":"2026-02-19T08:02:16.037Z","avatar_url":"https://github.com/rmparr.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Oriza [![Coverage Status](https://coveralls.io/repos/github/rmparr/oriza/badge.svg?branch=main)](https://coveralls.io/github/rmparr/oriza?branch=main)\n\nA way to add contexts to function calls. Given:\n\n```elixir\ndefmodule MyModule do\n  use Oriza.Context\n\n  context(:do_something, [:arg], [admin: [:read, :write]])\n  def do_something(arg), do: arg\nend\n```\n\nCreates the following additional function definition:\n\n```elixir\ndef do_something(user_context, arg) do\n  if check_context(user_context, %Oriza.Context{keys: [admin: [:read, :write]]}) do\n    do_something(arg)\n  else\n    {:error, \"access denied\"}\nend\n```\n\n## Installation\n\nOriza can be added as a project dependency:\n\n```elixir\ndef deps do\n  [\n    {:oriza, \"~\u003e 0.0.3-alpha\"}\n  ]\nend\n```\n\nAfter adding the dependency, modules can `use Oriza`, which will give access to the `context` macro.\n\n## Contributing\n\n### Git Hooks\n\nGitHub Actions is going to run all of this anyway, so why not check before?\n\nTo remove any existing hooks and symlink the repo git hooks, run `mix run scripts/symlink_git_hooks.exs` from the command line.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmparr%2Foriza","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frmparr%2Foriza","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmparr%2Foriza/lists"}