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
- Host: GitHub
- URL: https://github.com/task4233/oauth-go-sample
- Owner: task4233
- Created: 2023-07-22T15:28:20.000Z (almost 3 years ago)
- Default Branch: v3
- Last Pushed: 2024-08-17T14:42:56.000Z (almost 2 years ago)
- Last Synced: 2024-08-18T11:23:16.259Z (almost 2 years ago)
- Language: Go
- Homepage:
- Size: 84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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)