CODESEEDSign in
Explore projects
Gointermediatebackend

OAuth 2.0 Provider

Full implementation of an OAuth 2.0 Authorization Server in Go: authorization code flow, PKCE, token introspection, and revocation.

5 steps

Project steps

  1. 01

    Client registration

    CRUD for OAuth clients: client_id, secret, redirect_uris, scopes.

  2. 02

    Authorization endpoint

    GET /authorize: validate params, redirect with authorization code.

  3. 03

    Token endpoint

    POST /token: exchange code → access_token + refresh_token, PKCE verify.

  4. 04

    Introspection & revocation

    RFC 7662 introspection and RFC 7009 revocation endpoints.

  5. 05

    JWKS endpoint

    GET /.well-known/jwks.json with the RSA public key for JWT verification.

Recommended resources

Ready to build this?

Fork the repo on GitHub and start building. A mentor will review your code when you open a PR.

5 steps

Tech stack

Gochi routerPostgreSQLpgxgolang-jwt