An open API service indexing awesome lists of open source software.

https://github.com/task4233/oauth-go-sample

A repository for understanding the OAuth 2.0
https://github.com/task4233/oauth-go-sample

Last synced: 3 months ago
JSON representation

A repository for understanding the OAuth 2.0

Awesome Lists containing this project

README

          

# oauth-go
oauth-go-sample is a repository for understanding the OAuth 2.0(2.1) defined in [The OAuth 2.0 Authorization Framework](https://datatracker.ietf.org/doc/html/rfc6749), and [The OAuth 2.1 Authorization Framework(draft)](https://datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-1-09). Some notes are in the [doc](https://github.com/task4233/oauth-go/tree/v2/doc) folder.

This repository contains the following implementations:
- [x] Authorization Code Flow
- [x] Token Introspection
- [ ] Client Authentication
- [x] `client_secret_basic`

## Test

```bash
make test
```

## Server

```bash
make server/run &
open http://localhost:9000
```

## References
- [The OAuth 2.0 Authorization Framework](https://datatracker.ietf.org/doc/html/rfc6749)
- [The OAuth 2.1 Authorization Framework(draft)](https://datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-1-09)
- [Authentication and Authorization Flows](https://auth0.com/docs/get-started/authentication-and-authorization-flow)
- [OAuth 2.0 Token Introspection](https://datatracker.ietf.org/doc/html/rfc7662)