{"repo":"axa-group/oauth2-mock-server","free":true,"listed":false,"github":"https://github.com/axa-group/oauth2-mock-server","clone":"git clone https://github.com/axa-group/oauth2-mock-server.git","description":"A development and test oriented OAuth2 mock server","language":"TypeScript","stars":257,"topics":["oauth2-server","mock-server","testing","nodejs","hacktoberfest","oauth2"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"oauth2-mock-server OAuth 2 mock server. Intended to be used for development or testing purposes. When developing an application that exposes or consumes APIs that are secured with an OAuth 2 authorization scheme, a mechanism for issuing access tokens is needed. Frequently, a developer needs to create custom code that fakes the creation of tokens for testing purposes, and these tokens cannot be properly verified, since there is no actual entity issuing those tokens. The purpose of this package is to provide an easily configurable OAuth 2 server, that can be set up and torn down at will, and can be programmatically run while performing automated tests. - Real cryptography. Tokens are signed with actual JWK key pairs. Consuming applications can verify them using the /jwks endpoint, without mocking the verification layer. - OIDC-conformant. Exposes all the endpoints a real provider would: discovery, JWKS, authorization code flow with PKCE, userinfo, token introspection, revocation, and end session. - Programmatic and CLI. Embed it in a JavaScript or TypeScript test suite ( beforeAll / afterAll ) or run it as a standalone process for Java, .NET, Python, and other non-JS projects. - Per-test customization via event hooks. Use server.service.once(Events.xxx, ...) to alter token claims, simulate errors, or modify responses for a single test — without reconfiguring the server. - TypeScript-first. Full type definitions ship with the package. The entire codebase is written in strict Typ","default_branch":null,"files":null,"tree":[],"storefront":"/r/axa-group","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/axa-group/oauth2-mock-server/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}