oauth2-mock-server

Mock OAuth2/OpenID Connect server for testing and development.

npmmacoslinuxwindows
Try with needOr install directly
Source

About

Configurable OAuth2/OpenID Connect server for automated testing and development purposes

Commands

oauth2-mock-server

Examples

start a local OAuth2 server for testing$ oauth2-mock-server
run OAuth2 mock server on a custom port$ oauth2-mock-server --port 9000
test application login with fake OAuth2 tokens$ oauth2-mock-server --clientId test-client --clientSecret test-secret
generate mock OpenID Connect endpoints for development$ oauth2-mock-server --issuer http://localhost:8080
configure custom JWT claims for testing authorization$ oauth2-mock-server --claims '{"role": "admin"}'