{"id":13710030,"url":"https://github.com/h0ru5/apo","last_synced_at":"2026-03-02T14:37:53.220Z","repository":{"id":56732638,"uuid":"89098805","full_name":"h0ru5/apo","owner":"h0ru5","description":"A.P.O. - \"Authorized Personnel Only\" is a minimalist OAuth IAM written in Go ","archived":false,"fork":false,"pushed_at":"2022-08-13T06:53:44.000Z","size":19,"stargazers_count":36,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-03T23:17:07.985Z","etag":null,"topics":["authorization","go","golang","htpasswd","iam","jwt","oauth2","rest-api"],"latest_commit_sha":null,"homepage":null,"language":null,"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/h0ru5.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-04-22T20:59:13.000Z","updated_at":"2023-06-26T16:06:09.000Z","dependencies_parsed_at":"2022-08-16T00:40:52.504Z","dependency_job_id":null,"html_url":"https://github.com/h0ru5/apo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h0ru5%2Fapo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h0ru5%2Fapo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h0ru5%2Fapo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/h0ru5%2Fapo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/h0ru5","download_url":"https://codeload.github.com/h0ru5/apo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221587228,"owners_count":16848060,"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":["authorization","go","golang","htpasswd","iam","jwt","oauth2","rest-api"],"created_at":"2024-08-02T23:00:50.956Z","updated_at":"2026-03-02T14:37:48.178Z","avatar_url":"https://github.com/h0ru5.png","language":null,"funding_links":[],"categories":["Repositories"],"sub_categories":[],"readme":"# A.P.O: - Authorized personnel only\n\nAPO is a simple OAuth IAM server.\nIt's backed is simple htpasswd file (as used e.g. in Apache)\nIt issues tokens under `/token`.\nTokens are signed using ECDSA, using a key generated at startup and exposed as jwk under `/key`\n\n**Please Note:** this app server currently only provides an http endpoint (not https),\nso you should expose it behind a reverse proxy (such as nginx).\nThis allows you also to use a certificate managed by letsencrypt.\n\n## Building, staring\n\n`go run main.go`\n\n## Configuration\n\nconfig is based on viper. The server looks for a file called `iam-conf.json` and evaluates command line parameters and environment variables \n\n### passfile\n\nset via command line using `-f` or `--passfile` resp `\"passfile\"`in the config file.\n\nThis tells the server which htpasswd file to use as user base. defaults to ``\"./passes\"`` \nNot re-evaluated at runtime, restart IAM on changes.\n\n### endpoint\n\nset via command line using `-e` or `--endpoint` resp `\"endpoint\"`in the config file.\n\nwhere this server listens. defaults to ``\":3000\"``\n\n### audience\n\nset via command line using `-a` or `--audience` resp `\"audience\"`in the config file.\n\nthe audience/realm that gets protected. Appears as such in the basic auth challenge of IAM and in the issued token.\ndefaults to `\"myhome\"`\n\n## dependencies\n\n### direct\n```\n\t\"github.com/Sirupsen/logrus\"\n\t\"github.com/abbot/go-http-auth\"\n\t\"github.com/dgrijalva/jwt-go\"\n\t\"github.com/foomo/htpasswd\"\n\t\"github.com/gorilla/mux\"\n\t\"github.com/mendsley/gojwk\"\n\t\"github.com/spf13/pflag\"\n\t\"github.com/spf13/viper\"\n```\n\n### transitive\n```\ngithub.com/Sirupsen/logrus          MIT License\ngithub.com/abbot/go-http-auth       Apache License 2.0 (95%)\ngithub.com/dgrijalva/jwt-go         MIT License (98%)\ngithub.com/foomo/htpasswd           MIT License\ngithub.com/fsnotify/fsnotify        BSD 3-clause \"New\" or \"Revised\" License (96%)\ngithub.com/gorilla/mux              BSD 3-clause \"New\" or \"Revised\" License (96%)\ngithub.com/h0ru5/hmauth/IAM         MIT License (98%)\ngithub.com/hashicorp/hcl            Mozilla Public License 2.0\ngithub.com/kr/fs                    BSD 3-clause \"New\" or \"Revised\" License (96%)\ngithub.com/magiconair/properties    BSD 2-clause \"Simplified\" License (95%)\ngithub.com/mendsley/gojwk           BSD 2-clause \"Simplified\" License (96%)\ngithub.com/mitchellh/mapstructure   MIT License\ngithub.com/pelletier/go-buffruneio  ?\ngithub.com/pelletier/go-toml        MIT License\ngithub.com/pkg/errors               BSD 2-clause \"Simplified\" License\ngithub.com/pkg/sftp                 BSD 2-clause \"Simplified\" License\ngithub.com/spf13/afero              Apache License 2.0 (95%)\ngithub.com/spf13/cast               MIT License\ngithub.com/spf13/jwalterweatherman  MIT License\ngithub.com/spf13/pflag              BSD 3-clause \"New\" or \"Revised\" License (96%)\ngithub.com/spf13/viper              MIT License\ngolang.org/x/crypto                 BSD 3-clause \"New\" or \"Revised\" License (96%)\ngolang.org/x/net/context            BSD 3-clause \"New\" or \"Revised\" License (96%)\ngolang.org/x/sys/unix               BSD 3-clause \"New\" or \"Revised\" License (96%)\ngolang.org/x/text                   BSD 3-clause \"New\" or \"Revised\" License (96%)\ngopkg.in/yaml.v2                    ? (The Unlicense, 35%)\n```\n\n## Licence / Copyright\n\nCopyright (c) Johannes Hund / @h0ru5 2017\n\nPublished under the [MIT licence](https://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh0ru5%2Fapo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fh0ru5%2Fapo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fh0ru5%2Fapo/lists"}