{"id":13509878,"url":"https://github.com/shimt/pam-exec-oauth2","last_synced_at":"2025-03-30T14:31:54.334Z","repository":{"id":57556929,"uuid":"83665981","full_name":"shimt/pam-exec-oauth2","owner":"shimt","description":"Allows Linux user authentication to OAuth2 via pam_exec","archived":true,"fork":false,"pushed_at":"2021-06-12T05:47:24.000Z","size":231,"stargazers_count":83,"open_issues_count":4,"forks_count":37,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-11-01T10:35:03.793Z","etag":null,"topics":["go","linux","oauth2","pam"],"latest_commit_sha":null,"homepage":"","language":"Go","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/shimt.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-03-02T10:33:42.000Z","updated_at":"2024-09-27T12:11:38.000Z","dependencies_parsed_at":"2022-09-07T17:51:37.710Z","dependency_job_id":null,"html_url":"https://github.com/shimt/pam-exec-oauth2","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shimt%2Fpam-exec-oauth2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shimt%2Fpam-exec-oauth2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shimt%2Fpam-exec-oauth2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shimt%2Fpam-exec-oauth2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shimt","download_url":"https://codeload.github.com/shimt/pam-exec-oauth2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246332245,"owners_count":20760447,"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":["go","linux","oauth2","pam"],"created_at":"2024-08-01T02:01:15.772Z","updated_at":"2025-03-30T14:31:52.169Z","avatar_url":"https://github.com/shimt.png","language":"Go","funding_links":[],"categories":["Go","linux"],"sub_categories":[],"readme":"# pam-exec-oauth2\n\n**This repository is no longer maintained.**\n\n## Install\n\n```bash\ngo get github.com/shimt/pam-exec-oauth2\n\nPREFIX=/opt/pam-exec-oauth2\n\nsudo mkdir $PREFIX\nsudo cp go/bin/pam-exec-oauth2 $PREFIX/pam-exec-oauth2\nsudo touch $PREFIX/pam-exec-oauth2.yaml\nsudo chmod 755 $PREFIX/pam-exec-oauth2\nsudo chmod 600 $PREFIX/pam-exec-oauth2.yaml\n```\n\n## Configuration\n\n### PAM\n\nadd the following lines to `/etc/pam.d/common-auth`. \n\n```\nauth sufficient pam_exec.so expose_authtok /opt/pam-exec-oauth2/pam-exec-oauth2\n```\n\n### pam-exec-oauth2.yaml\n\nedit `/opt/pam-exec-oauth2/pam-exec-oauth2.yaml`\n\n#### Azure AD\n\n```yaml\n{\n    client-id: \"xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\",\n    client-secret: \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n    redirect-url: \"urn:ietf:wg:oauth:2.0:oob\",\n    scopes: [\"email\"],\n    endpoint-auth-url: \"https://login.windows.net/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/oauth2/authorize\",\n    endpoint-token-url: \"https://login.windows.net/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/oauth2/token\",\n    extra-parameters: {\n        resource: \"https://graph.windows.net/\"\n    },\n    username-format: \"%s@example.org\",\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshimt%2Fpam-exec-oauth2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshimt%2Fpam-exec-oauth2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshimt%2Fpam-exec-oauth2/lists"}