{"id":29047964,"url":"https://github.com/utkar5hm/execstasy-pam","last_synced_at":"2026-04-29T19:31:44.218Z","repository":{"id":266360154,"uuid":"895674082","full_name":"Utkar5hM/execstasy-pam","owner":"Utkar5hM","description":"Execstasy PAM - Linux PAM Module for OAuth 2.0 Device Authorization Grant (RFC 8628)","archived":false,"fork":false,"pushed_at":"2025-06-26T01:42:59.000Z","size":164,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-26T02:37:09.943Z","etag":null,"topics":["c","iam","linux","make","makefile","oauth2","pam","pam-authentication","pam-module","passwordless","ssh"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Utkar5hM.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-11-28T16:50:18.000Z","updated_at":"2025-06-26T01:43:02.000Z","dependencies_parsed_at":"2025-06-15T20:02:26.962Z","dependency_job_id":"b2b74993-0c75-443a-b9fe-6c3ab40e0a78","html_url":"https://github.com/Utkar5hM/execstasy-pam","commit_stats":null,"previous_names":["utkar5hm/pamshi","utkar5hm/execstasy-pam"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Utkar5hM/execstasy-pam","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Utkar5hM%2Fexecstasy-pam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Utkar5hM%2Fexecstasy-pam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Utkar5hM%2Fexecstasy-pam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Utkar5hM%2Fexecstasy-pam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Utkar5hM","download_url":"https://codeload.github.com/Utkar5hM/execstasy-pam/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Utkar5hM%2Fexecstasy-pam/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32440863,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T18:12:22.909Z","status":"ssl_error","status_checked_at":"2026-04-29T18:11:33.322Z","response_time":110,"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":["c","iam","linux","make","makefile","oauth2","pam","pam-authentication","pam-module","passwordless","ssh"],"created_at":"2025-06-26T17:35:52.571Z","updated_at":"2026-04-29T19:31:44.205Z","avatar_url":"https://github.com/Utkar5hM.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Execstasy - Linux PAM Module for OAuth 2.0 Device Authorization Grant ([RFC 8628](https://datatracker.ietf.org/doc/html/rfc8628))\n\n\u003e Built to be used with [Execstacy - An IAM for Linux Instances](https://github.com/Utkar5hM/Execstasy).\n\u003e\n\u003e NOTE: It's currently a private repository. :D\n\n![screenshot](image.png)\n\nProject Status: `WIP` (mvp)\n\n## Usage Instruction\n\n### Dependencies\n\nFigure it out for now. As far as I remember, libcurl is required.\n\n### Build \u0026 Install\n\nThe below command will install the PAM into the PAM installation directory `/lib64/security/`:\n\n```sh\nmake install\n```\n\nYou need to add the following line to your application's respective PAM configuration file:\n\n```sh\n# for sshd ( /etc/pam.d/sshd )\n# for pamtester ( /etc/pam.d/pamtester )\n\nauth sufficient execstasy.so debug user=root auth_server_url=http://localhost:4000\n```\n\n\u003e In `user=username`, the username specifies the user with which the secrets file containing encoded clientId will be opened. The file needs to have `0600` perm and owned by that user. \n\u003e\n\u003e The secret (client-id obtained from the Execstasy site) is by default read from `/etc/execstasy/.config`, is base32 encoded without the `=`. \n\u003e\n\u003e debug parameter is not necessary\n\n### test\n\n```sh\n# test using pamtester with sshd service\nmake test\n# or below command to test with pamtester service\nmake test TEST_SERVICE=pamtester\n```\n\n### cleanup\nRun a cleanup before `make install` everytime to make sure it does build everytime.\n\n```sh\nmake clean\n```\n\n### debugging\nreplace `service` with the service you will be using the PAM module with.\n```sh\njournalctl -f SYSLOG_IDENTIFIER=\"service(execstasy_auth)\"\n# ex- for sshd\njournalctl -f SYSLOG_IDENTIFIER=\"sshd(execstasy_auth)\"\n```\n\n### Configuring sshd\n\nMake sure you have the following set in sshd's config (`/etc/ssh/sshd_config`). change as required but make sure to also check files in `/etc/ssh/sshd_config.d/` directory for conflicting configuration.\n \n```\nUsePAM yes\nChallengeResponseAuthentication yes\nPasswordAuthentication yes\nPubkeyAuthentication yes\nKbdInteractiveAuthentication yes\nPermitTTY yes\n\n```\n------------\n\n\nThis project is heavily inspired from [google-authenticator-libpam)](https://github.com/google/google-authenticator-libpam). Hence, it can be used as an example on how to configure this PAM Module.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futkar5hm%2Fexecstasy-pam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Futkar5hm%2Fexecstasy-pam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futkar5hm%2Fexecstasy-pam/lists"}