dispans

Go library providing in-memory implementation of an OAuth2 Authorization Server / OpenID Provider. The name comes from the Swedish word dispens (pronounced: dis like in disconnect and pans like in pansardis-pans) meaning exemption in English.

Mission statement

The purpose of this library is to make it easy to test OAuth2 / OIDC clients, providing an easy way to run an OAuth2.0 Authorization Server (AS) / OpenID Provider (OIDC / OpenID Connect).

This is not supposed to be a certified provider, or a secure one for that matter. It will implement the bare minimum to make it easy to get tokens with the claims you need.

NEVER use this library for any kind of production code. It’s supposed to be used in tests to validate client implementations.

GitHub

https://github.com/XenitAB/dispans