Browse Source

update readme

master
Dmitriy Sim 3 years ago
parent
commit
7c33c6ac1a
2 changed files with 8 additions and 5 deletions
  1. +8
    -0
      demo-keycloak-runner/README.md
  2. +0
    -5
      demo-resource-server/src/main/java/ru/digitalbanana/demoresourceserver/web/controller/UserInfoController.java

+ 8
- 0
demo-keycloak-runner/README.md View File

@ -9,6 +9,14 @@ To start docker running keycloak
bash docker-keycloak.sh
```
Go to http://localhost:8080 and login via `admin:admin`.
Create a new realm `demorealm`.
Create a new client with client-id=`react-app`, leave everything else untouched (openid-connect).
Create a new user and set his credentials.
----
## Keycloak theming


+ 0
- 5
demo-resource-server/src/main/java/ru/digitalbanana/demoresourceserver/web/controller/UserInfoController.java View File

@ -1,10 +1,6 @@
package ru.digitalbanana.demoresourceserver.web.controller;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.StreamSupport;
@ -13,7 +9,6 @@ import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.security.oauth2.jwt.Jwt;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
import lombok.extern.slf4j.Slf4j;


Loading…
Cancel
Save