20 lines
633 B
Markdown
20 lines
633 B
Markdown
## 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 |