Michuu93 / spring-angular-keycloak

Blog post: Keycloak - uwierzytelnianie i autoryzacja użytkownika w aplikacji Angular/Spring Boot.

Home Page:https://blog.consdata.tech/2020/02/01/keycloak-uwierzytelnianie-autoryzacja-springboot-angular.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spring-angular-keycloak-demo

Spring Boot + Angular + Keycloak implementation with common configuration.

Keycloak Server

Run:

docker run --rm --name keycloak-server -p 8180:8080 -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=admin -e KEYCLOAK_IMPORT=/realm/realm-export.json -v $(pwd)/realm/:/realm/ jboss/keycloak

Admin Console:
http://127.0.0.1:8180/auth/admin/
admin:admin

Available users:
user:password with role user_role
user2:password2 with default roles

Application

Build:

docker build -t michuu93/spring-angular-keycloak-demo .

Run:

docker run --rm --name spring-angular-keycloak-demo --network host michuu93/spring-angular-keycloak-demo

Use --network host to solve the problem connecting the container with the application to the container with keycloak.
It's a quick solution without editing /etc/hosts.

Open:
http://localhost:9082/

About

Blog post: Keycloak - uwierzytelnianie i autoryzacja użytkownika w aplikacji Angular/Spring Boot.

https://blog.consdata.tech/2020/02/01/keycloak-uwierzytelnianie-autoryzacja-springboot-angular.html


Languages

Language:TypeScript 78.5%Language:Kotlin 11.6%Language:JavaScript 7.0%Language:Dockerfile 1.3%Language:HTML 1.1%Language:CSS 0.3%