{"repo":"navikt/mock-oauth2-server","free":true,"listed":false,"github":"https://github.com/navikt/mock-oauth2-server","clone":"git clone https://github.com/navikt/mock-oauth2-server.git","description":"Mock OAuth2/OpenID Connect server for JVM tests and Docker Compose. No security workarounds needed.","language":"Kotlin","stars":411,"topics":["oauth2","mock","mock-oauth2-server","kotlin","java","docker","openid-connect","oidc","jwt","security"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"mock-oauth2-server Scriptable OAuth2/OpenID Connect server for JVM tests and Docker Compose. [!NOTE] The latest stable version is shown in the Maven Central badge above. See the release notes for what has changed. --- Table of Contents - Quick Start - What it does - Supported Flows - Usage - In JVM Tests - Standalone / Docker - Docker Compose - Token Customization via JSON CONFIG - Auto-added claims - aud claim resolution - HTTPS - CORS - Debugger - Configuration Reference - API Reference - Migration guide - Contributing - Contact - License --- Quick Start Add the dependency: Gradle Kotlin DSL Maven Start the server and issue a token in your test: Or run it as a Docker container: Token endpoint: http://localhost:8080/default/token Discovery: http://localhost:8080/default/.well-known/openid-configuration --- What it does mock-oauth2-server lets you test applications that depend on a real OAuth2/OpenID Connect server without disabling security. It issues signed JWTs that are verifiable through standard JWKS and discovery endpoints, so your app does not need any special test configuration. It supports multi-issuer setups, all major OAuth2 grant types, token customization, and runs both embedded in JVM tests and as a standalone process in Docker Compose. [!WARNING] This server is for testing only. Do not use it in production. --- Supported Flows - OpenID Connect Authorization Code Flow - OAuth2 Client Credentials Grant - OAuth2 JWT Bearer Grant (On-Behalf-Of flow) - OAuth2 Token ","default_branch":null,"files":null,"tree":[],"storefront":"/r/navikt","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/navikt/mock-oauth2-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."}