Skip to content

Commit 6ea2ab1

Browse files
committed
add keycloak configuration
1 parent 1a34d5a commit 6ea2ab1

File tree

4 files changed

+8
-28
lines changed

4 files changed

+8
-28
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
*.war
1515
*.nar
1616
*.ear
17-
*.zip
1817
*.tar.gz
1918
*.rar
2019

setup_keycloak/README.md

+8-27
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,14 @@
11
# Preparation: Setting up Keycloak as Identity Provider
22

3+
In this workshop we will use [Keycloak](https://keycloak.org) by JBoss/RedHat as local identity provider.
34

4-
```
5-
http --form http://localhost:8080/auth/realms/workshop/protocol/openid-connect/token grant_type=password \
6-
username=bwayne password=wayne client_id=library-client client_secret=9584640c-3804-4dcd-997b-93593cfb9ea7
7-
```
8-
9-
10-
```
11-
http localhost:9091/library-service/books 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cC...'
12-
```
13-
14-
```
15-
HTTP/1.1 200 OK
16-
Content-Type: application/json
17-
18-
{
19-
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCIgO...",
20-
"expires_in": 300,
21-
"not-before-policy": 1556650611,
22-
"refresh_expires_in": 1800,
23-
"refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCIg...",
24-
"scope": "profile email user",
25-
"session_state": "c92a82d1-8e6d-44d7-a2f3-02f621066968",
26-
"token_type": "bearer"
27-
}
28-
```
29-
30-
5+
[Keycloak](https://keycloak.org) is certified for OpenID Connect 1.0 and OAuth 2.0 and therefore supports all
6+
hands-on labs of this workshop.
317

8+
## Setup Keycloak
329

10+
To setup [Keycloak](https://keycloak.org):
3311

12+
1. Download the binary distribution [here (zip archive)](https://downloads.jboss.org/keycloak/6.0.1/keycloak-6.0.1.zip).
13+
2. Extract the downloaded zip file into a new local directory of your choice
14+
3. Download the prepared keycloak configuration for this workshop [here]()

setup_keycloak/init_keycloak.sh

100644100755
File mode changed.

setup_keycloak/keycloak_data.zip

160 KB
Binary file not shown.

0 commit comments

Comments
 (0)