{"id":16223685,"url":"https://github.com/lykmapipo/express-oauth","last_synced_at":"2026-04-29T23:32:03.972Z","repository":{"id":139148773,"uuid":"127930043","full_name":"lykmapipo/express-oauth","owner":"lykmapipo","description":"minimal oauth implementation for express","archived":false,"fork":false,"pushed_at":"2018-07-13T10:19:02.000Z","size":129,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-01T16:41:46.767Z","etag":null,"topics":["authorization","client","code","express","grants","mongodb","mongoose","oauth","token","user"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/lykmapipo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-03T15:34:00.000Z","updated_at":"2025-01-20T20:53:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"93593db6-696a-4c5e-9c02-e6fb83510cbb","html_url":"https://github.com/lykmapipo/express-oauth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lykmapipo/express-oauth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lykmapipo%2Fexpress-oauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lykmapipo%2Fexpress-oauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lykmapipo%2Fexpress-oauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lykmapipo%2Fexpress-oauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lykmapipo","download_url":"https://codeload.github.com/lykmapipo/express-oauth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lykmapipo%2Fexpress-oauth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32448399,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"ssl_error","status_checked_at":"2026-04-29T22:10:49.234Z","response_time":110,"last_error":"SSL_read: 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","client","code","express","grants","mongodb","mongoose","oauth","token","user"],"created_at":"2024-10-10T12:19:44.636Z","updated_at":"2026-04-29T23:32:03.957Z","avatar_url":"https://github.com/lykmapipo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# express-oauth(WIP)\n\n[![Build Status](https://travis-ci.org/lykmapipo/express-oauth.svg?branch=master)](https://travis-ci.org/lykmapipo/express-oauth)\n[![Dependency Status](https://img.shields.io/david/lykmapipo/express-oauth.svg?style=flat)](https://david-dm.org/lykmapipo/express-oauth)\n[![npm version](https://badge.fury.io/js/%40lykmapipo%2Fexpress-oauth.svg)](https://badge.fury.io/js/@lykmapipo/express-oauth)\n\n\nminimal [oauth](https://oauth.net/2/) implementation for [express](http://expressjs.com/)\n\n*Note: It highly advice to use TLS*\n\n## Requirements\n\n- NodeJS v9.3.0+\n- mongoose v5.0.9+\n\n## Install\n```sh\n$ npm install --save @lykmapipo/express-oauth\n```\n\n## Usage\n\n```javascript\n'use strict';\n\n//ensure mongo uri\nprocess.env.MONGODB_URI =\n  (process.env.MONGODB_URI || 'mongodb://localhost/express-oauth');\n\n//dependencies\nconst path = require('path');\nconst mongoose = require('mongoose');\nconst { app } = require('@lykmapipo/express-oauth');\n\n//connect to mongoose\nmongoose.connect(process.env.MONGODB_URI);\n\n//fire oauth app\napp.start();\n\n```\n\n```curl\ncurl /v1/users\ncurl /v1/clients\ncurl /v1/tokens\ncurl /v1/clients/:client/tokens\ncurl /v1/oauth/athenticate\ncurl /v1/oauth/authorize\ncurl /v1/oauth/token\n```\n\n\n## Testing\n* Clone this repository\n\n* Install all development dependencies\n```sh\n$ npm install\n```\n* Then run test\n```sh\n$ npm test\n```\n\n## Contribute\nIt will be nice, if you open an issue first so that we can know what is going on, then, fork this repo and push in your ideas. Do not forget to add a bit of test(s) of what value you adding.\n\n\n## References\n- [oauth.net](https://oauth.net/2/)\n- [oauth-2-simplified](https://aaronparecki.com/oauth-2-simplified/)\n- [oauthbible](http://oauthbible.com/)\n- [expressjs](https://expressjs.com/)\n- [Production Best Practices](https://expressjs.com/en/advanced/best-practice-security.html)\n- [Production Best Practices](https://expressjs.com/en/advanced/best-practice-performance.html)\n- [Using Middleware](http://expressjs.com/en/guide/using-middleware.html)\n- [Health Checks and Graceful Shutdown](https://expressjs.com/en/advanced/healthcheck-graceful-shutdown.html)\n- [The Twelve Factors App](https://12factor.net/)\n- [node-oauth2-server](https://github.com/oauthjs/node-oauth2-server)\n- [refresh-token-with-jwt-authentication-node-js](https://solidgeargroup.com/refresh-token-with-jwt-authentication-node-js)\n- [Github](https://developer.github.com/apps/building-oauth-apps/authorization-options-for-oauth-apps/)\n- [Google](https://developers.google.com/identity/protocols/OAuth2)\n- [an-introduction-to-oauth-2](https://www.digitalocean.com/community/tutorials/an-introduction-to-oauth-2)\n- [ory fosite](https://github.com/ory/fosite)\n\n\n## Licence\nThe MIT License (MIT)\n\nCopyright (c) 2018 lykmapipo \u0026 Contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flykmapipo%2Fexpress-oauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flykmapipo%2Fexpress-oauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flykmapipo%2Fexpress-oauth/lists"}