All Projects → patientsknowbest → Fake Oauth2 Server

patientsknowbest / Fake Oauth2 Server

Licence: mit
An OAuth2 server implementation to be used for testing

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Fake Oauth2 Server

oauth2-server
A spec compliant, secure by default PHP OAuth 2.0 Server
Stars: ✭ 6,128 (+17923.53%)
Mutual labels:  oauth2, oauth2-server
Hiauth
HiAuth是一个开源的基于Oauth2协议的认证、授权系统。
Stars: ✭ 273 (+702.94%)
Mutual labels:  oauth2, oauth2-server
jpsite-security-oauth2-open
微服务开放API授权平台
Stars: ✭ 21 (-38.24%)
Mutual labels:  oauth2, oauth2-server
Authlib
The ultimate Python library in building OAuth, OpenID Connect clients and servers. JWS,JWE,JWK,JWA,JWT included.
Stars: ✭ 2,854 (+8294.12%)
Mutual labels:  oauth2, oauth2-server
Oauth2 Shiro Jwt
use oauth2, shiro and spring specrity to make an ums system
Stars: ✭ 29 (-14.71%)
Mutual labels:  oauth2, oauth2-server
Express Gateway
A microservices API Gateway built on top of Express.js
Stars: ✭ 2,583 (+7497.06%)
Mutual labels:  oauth2, oauth2-server
angular2-social-login
Angular 2 OAuth social login facebook, google, LinkedIn etc using NodeJS server
Stars: ✭ 40 (+17.65%)
Mutual labels:  oauth2, oauth2-server
Go Oauth2 Server
A standalone, specification-compliant, OAuth2 server written in Golang.
Stars: ✭ 1,843 (+5320.59%)
Mutual labels:  oauth2, oauth2-server
Go Api Boilerplate
Go Server/API boilerplate using best practices DDD CQRS ES gRPC
Stars: ✭ 373 (+997.06%)
Mutual labels:  oauth2, oauth2-server
Tkey
以材料最全、示例最多为目标的单点登录系统(SSO)
Stars: ✭ 295 (+767.65%)
Mutual labels:  oauth2, oauth2-server
Egg Oauth2 Server
🌟 OAuth2 server plugin for egg.js based on node-oauth2-server
Stars: ✭ 174 (+411.76%)
Mutual labels:  oauth2, oauth2-server
Doorkeeper
Doorkeeper is an OAuth 2 provider for Ruby on Rails / Grape.
Stars: ✭ 4,917 (+14361.76%)
Mutual labels:  oauth2, oauth2-server
Oauth2
OAuth 2.0 server library for the Go programming language.
Stars: ✭ 2,173 (+6291.18%)
Mutual labels:  oauth2, oauth2-server
Light Oauth2
A fast, light and cloud native OAuth 2.0 authorization microservices based on light-4j
Stars: ✭ 247 (+626.47%)
Mutual labels:  oauth2, oauth2-server
Doorkeeper Provider App
An example OAuth 2 provider application using the Doorkeeper gem, Rails and Devise
Stars: ✭ 146 (+329.41%)
Mutual labels:  oauth2, oauth2-server
genkan
🔑 The future of Kitsu's Authentication
Stars: ✭ 13 (-61.76%)
Mutual labels:  oauth2, oauth2-server
Node Oauth2 Server Example
Working oauth2 server with minimal configuration
Stars: ✭ 115 (+238.24%)
Mutual labels:  oauth2, oauth2-server
Hydra
OpenID Certified™ OpenID Connect and OAuth Provider written in Go - cloud native, security-first, open source API security for your infrastructure. SDKs for any language. Compatible with MITREid.
Stars: ✭ 11,884 (+34852.94%)
Mutual labels:  oauth2, oauth2-server
Glewlwyd
Single Sign On server, OAuth2, Openid Connect, multiple factor authentication with, HOTP/TOTP, FIDO2, TLS Certificates, etc. extensible via plugins
Stars: ✭ 292 (+758.82%)
Mutual labels:  oauth2, oauth2-server
Example Oauth2 Server
Example for OAuth 2 Server for Authlib.
Stars: ✭ 499 (+1367.65%)
Mutual labels:  oauth2, oauth2-server

Fake OAuth2

This project is an OAuth2 server implementation for testing purposes. See RFC 6749 .

It is useful for you if you are developing an OAuth2 client application and want to stub the server for testing purposes. In this context the subject under testing (SUT) is your client application and this project can act as a stub of the external OAuth service, which your application is supposed to use. By testing I mean automated end-to-end testing or manual testing, not unit testing.

Currently under development.

Building & running

  • clone this repo
  • run npm install
  • start the server using node server.js
  • you can run the unittests using npm test

Configuration

The application can be configured using environment variables before executing node server.js . The default configuration matches the relative URIs of the google OAuth2 implementation.

List of environment variables:

Variable name Default value Description
PORT 8282 The port the server listens on
EXPECTED_CLIENT_ID dummy-client-id The client identifier which your SUT should send to the OAuth2 server in authentication requests and access token requests.
EXPECTED_CLIENT_SECRET dummy-client-secret The client secret which your SUT should send to the OAuth2 server in access token requests.
AUTH_REQUEST_PATH /o/oauth2/v2/auth The HTTP path of the OAuth2 authorization endpoint which the fake server listens on
ACCESS_TOKEN_REQUEST_PATH /oauth2/v4/token The HTTP path of the access token request which the fake server listens on
PERMITTED_REDIRECT_URLS http://localhost:8181/auth/login comma-separated list of permitted redirection endpoints

All those environment variables are defined in .env file with some examples. To use them, set them with your environment values and run $node server.js or $npm start. Those variables are then magically put in the process environment variables using dotenv.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].