A simple OAuth 2.0 service for authentication and authorization.
http://localhost:3000/demoClient/login.html
Demo https://nyangoauth.r-e.kr/login.html in your browser.
Demo Client https://nyangoauth.r-e.kr/demoClient/login.html in your browser.
- User registration and login
- Service registration
- OAuth 2.0 Authorization Code Grant flow
- Token issuance and validation
app.js
— Main server codepublic/
— Static frontend files (HTML, CSS, JS)sessions/
— Session storage (excluded from git)db.properties
— Simple key-value database (excluded from git)generate-oauth-credentials.js
— Utility for generating OAuth credentialsoutside/
— Example external service integration
- Node.js (v16+)
- npm
git clone <your-repo-url>
cd nyangoauth
npm install
npm start
Visit http://localhost:3000 in your browser.
npm run dev
- Register a user at
/signup.html
- Register a service at
/register-service.html
- Log in at
/login.html
- Manage users/services at
/dashboard.html
- OAuth endpoints:
/oauth/authorize
/oauth/token
/oauth/userinfo
db.properties
andsessions/
are excluded from version control for security.- For demonstration and learning purposes only.
MIT