Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/big-kahuna-burger/f0
OIDC Protocol Conforming Identity Provider and a Management Dashboard
https://github.com/big-kahuna-burger/f0
idp issuer jwt jwt-authentication oauth2 oidc oidc-client oidc-server
Last synced: about 2 months ago
JSON representation
OIDC Protocol Conforming Identity Provider and a Management Dashboard
- Host: GitHub
- URL: https://github.com/big-kahuna-burger/f0
- Owner: big-kahuna-burger
- License: mit
- Created: 2023-12-10T21:38:04.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-23T14:17:38.000Z (2 months ago)
- Last Synced: 2024-10-23T16:13:00.560Z (2 months ago)
- Topics: idp, issuer, jwt, jwt-authentication, oauth2, oidc, oidc-client, oidc-server
- Language: JavaScript
- Homepage: https://f0-manage.vercel.app
- Size: 2.11 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 17
-
Metadata Files:
- Readme: readme.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# A Auth0 (micro) copy
## Requirements
- Node 18/20
- Docker## Install
Clone repo, cd to it:
#### Env
Add env files:
##### OP ENV (fastify server)
```sh
cat < services/idp/.env
# IDP Environment Variables
ISSUER=http://localhost:9876/oidc
POSTGRES_PRISMA_URL='postgres://postgres:secret123@localhost:5432/idp'
POSTGRES_URL_NON_POOLING='postgres://postgres:secret123@localhost:5432/idp'
GRANTS_DEBUG=1
DEBUG=oidc:events:*
DASHBOARD_ORIGIN=http://localhost:3036# after running scripts/init
DASHBOARD_CLIENT_ID=
EOT
```##### Manage ENV (React SPA)
```sh
cat < services/manage/.env
# React App Environment Variables
PORT=3036
REACT_APP_ISSUER=http://localhost:9876/oidc# after running scripts/init
DASHBOARD_CLIENT_ID=
EOT
```# Run installation for services/idp
Daemonize postgres and jaeger on docker
```sh
cd services/idp && docker compose up -d
```Install deps: it will run client generation and db migrations as well
```sh
npm i
```#### Initialize
Makes those default/readonly objects for bootstrapping:
- `Management API` ResourceServer
- `Dashboard` OidcClient
- Default `Admin Connection`
- Enables `Dashboard` OidcClient with a `Admin Connection`
```sh
npm run init
```After initialization, output will give a client id that needs to be added to env vars
Script that needs user interaction and let's you create account. (TODO, ask for claims other than email/password)
```sh
npm run create-account
``````sh
npm start
```Visit well known url: http://localhost:9876/oidc/.well-known/openid-configuration
Visit jwks: http://localhost:9876/oidc/jwks# Run installation for services/manage
```sh
cd ../manage && npm i
``````sh
npm start
```Visit management app: http://localhost:3036/