{"id":18260025,"url":"https://github.com/roppa/ntlm-auth","last_synced_at":"2025-04-08T23:44:36.329Z","repository":{"id":146092972,"uuid":"65287357","full_name":"roppa/ntlm-auth","owner":"roppa","description":"Test app for authentication/authorisation with NTLM and AD","archived":false,"fork":false,"pushed_at":"2016-08-15T16:23:06.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-14T18:36:27.063Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/roppa.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}},"created_at":"2016-08-09T10:46:36.000Z","updated_at":"2016-08-09T10:47:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"82819605-dc6b-449e-baa4-815cda91852e","html_url":"https://github.com/roppa/ntlm-auth","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/roppa%2Fntlm-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roppa%2Fntlm-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roppa%2Fntlm-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roppa%2Fntlm-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roppa","download_url":"https://codeload.github.com/roppa/ntlm-auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247947825,"owners_count":21023058,"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":[],"created_at":"2024-11-05T10:41:34.394Z","updated_at":"2025-04-08T23:44:36.305Z","avatar_url":"https://github.com/roppa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#Authentication and Authorisation example\n\nStill very much a work in progress. We want to create an authentication/authorisation service that can use NTLM or fall back on some other service.\n\nThe idea is to just have a series of middleware that is configurable and chained.\n\nFor example:\n\n  1. Authenticate over NTLM (unfortunately)\n  2. Get user details from AD\n  3. Store users details from above in JWT\n  4. Send 200\n\n##Setup\n\nThe app uses dotenv-safe for development. Create a .env file at the root of the application and add the following:\n\n```\nPORT=8070\nSECRET='TOTALLYAWESOMESECRET'\nDOMAIN_NAME='TESTDOMAIN'\nDIRECTORY_SYSTEM_AGENT='ldap://0.0.0.0:1389'\n#LDAP\nLDAP_ADMIN='cn=root'\nLDAP_SECRET='secret'\nLDAP_ACCOUNT_NAME='testorg'\nLDAP_ACCESS_GROUP='dc=example,dc=com,o=example'\n```\n\nIf the app is running then it needs access to an ldap server. To spin one up for testing:\n\n  1. run node\n  2. run ```let server = require('./mocks/ldapServer');```\n  3. run ```server.start(1389, () =\u003e {});```\n\n##Testing\n\nRun ```mocha```. This spins up a dev LDAP server.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froppa%2Fntlm-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froppa%2Fntlm-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froppa%2Fntlm-auth/lists"}