https://github.com/initialcapacity/oauth-starter
oauth-starter
https://github.com/initialcapacity/oauth-starter
Last synced: 5 months ago
JSON representation
oauth-starter
- Host: GitHub
- URL: https://github.com/initialcapacity/oauth-starter
- Owner: initialcapacity
- License: apache-2.0
- Created: 2022-05-25T01:51:29.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-17T12:28:17.000Z (about 4 years ago)
- Last Synced: 2025-04-12T05:05:51.120Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 188 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OAuth starter
[](https://github.com/initialcapacity/oauth-starter/actions)
[](https://codecov.io/gh/initialcapacity/oauth-starter)
An [application continuum](https://www.appcontinuum.io/) style example using Golang
that includes an OAuth 2 server with PKCE support.
* [OAuth 2.0 Authorization Framework](https://datatracker.ietf.org/doc/html/rfc6749)
* [Proof Key for Code Exchange](https://datatracker.ietf.org/doc/html/rfc7636)
* [OpenID Connect](https://openid.net/specs/openid-connect-core-1_0.html)
## Getting Started
Install the following prerequisites.
* [Go 1.18](https://go.dev)
* [Pack](https://buildpacks.io)
* [Docker Desktop](https://www.docker.com/products/docker-desktop)
* [Node.js](https://nodejs.org/en/)
Build golang binaries with Pack.
```bash
pack build oauth-starter --builder heroku/buildpacks:20
```
Build and pack the frontend app with NPM.
```bash
cd web
npm run build
npm run pack
cd -
```
Run with docker compose.
```bash
docker-compose up
````
## Development
Generate private and public keys.
```bash
openssl genrsa -out private.pem 2048
openssl rsa -in private.pem -pubout -outform PEM -out public.pem
```
That's a wrap for now.