initial commit

This commit is contained in:
2025-03-14 22:07:19 +01:00
commit 878945a5f8
9 changed files with 1425 additions and 0 deletions

20
README.md Normal file
View File

@@ -0,0 +1,20 @@
## Node.js Keycloak OAuth example
## Start
- `docker-compose up`
- `docker-compose up -d` | Modo demonio
- Keycloak: http://localhost:8180/ user/pass admin:admin
- http://localhost:8180/admin/master/console/#/master/clients
- Client ID: karkarcar
- Client authentication ✅
- Authorization ✅
- OAuth 2.0 Device Authorization Grant ✅
- Root url: http://localhost:8080
- Redirect url: http://localhost:8080/oauth/redirect
- Pestaña Credentials
- Copy Client secret
- Add user: email & password
- `npm start` http://localhost:8080/
### OpenId info
- http://localhost:8180/realms/master/.well-known/openid-configuration