61 lines
1.7 KiB
Markdown
61 lines
1.7 KiB
Markdown
# How to:
|
|
## Start
|
|
- ```
|
|
docker run --name keycloak \
|
|
-e KEYCLOAK_ADMIN=admin \
|
|
-e KEYCLOAK_ADMIN_PASSWORD=admin \
|
|
--network=host \
|
|
quay.io/keycloak/keycloak:24.0.0 \
|
|
start-dev \
|
|
--http-port=8180
|
|
```
|
|
- `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 ✅
|
|
- Alternative: import [text](keycloak-cli-karkarcar.json)
|
|
# CLI
|
|
- Root url: http://localhost:4321
|
|
- Redirect url: http://localhost:4321/api/auth/callback/keycloak
|
|
- Pestaña Credentials
|
|
- Copy Client secret
|
|
- Add user: email & password
|
|
|
|
|
|
- `npm run dev` | Start astro
|
|
|
|
###
|
|
```bash
|
|
KEYCLOAK_CLIENT_ID=karkarcar
|
|
KEYCLOAK_CLIENT_SECRET=fdI1OtyX0YNNUMqfcsbSMFTv9WfzQQwy
|
|
KEYCLOAK_ISSUER=http://localhost:8180/realms/master
|
|
```
|
|
|
|
|
|
### OpenId info
|
|
- http://localhost:8180/realms/master/.well-known/openid-configuration
|
|
|
|
|
|
# ToDo:
|
|
- I+D: host astro server
|
|
- Internazionalization
|
|
- Theme
|
|
- Logo
|
|
- Colors
|
|
- Active BG: #095885
|
|
--e-global-color-primary: #6EC1E4;
|
|
--e-global-color-secondary: #54595F;
|
|
--e-global-color-text: #7A7A7A;
|
|
--e-global-color-accent: #61CE70;
|
|
--e-global-typography-primary-font-family: "Roboto";
|
|
--e-global-typography-primary-font-weight: 600;
|
|
--e-global-typography-secondary-font-family: "Roboto Slab";
|
|
--e-global-typography-secondary-font-weight: 400;
|
|
--e-global-typography-text-font-family: "Roboto";
|
|
--e-global-typography-text-font-weight: 400;
|
|
--e-global-typography-accent-font-family: "Roboto";
|
|
--e-global-typography-accent-font-weight: 500; |