File tree 4 files changed +8
-28
lines changed
4 files changed +8
-28
lines changed Original file line number Diff line number Diff line change 14
14
* .war
15
15
* .nar
16
16
* .ear
17
- * .zip
18
17
* .tar.gz
19
18
* .rar
20
19
Original file line number Diff line number Diff line change 1
1
# Preparation: Setting up Keycloak as Identity Provider
2
2
3
+ In this workshop we will use [ Keycloak] ( https://keycloak.org ) by JBoss/RedHat as local identity provider.
3
4
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.
31
7
8
+ ## Setup Keycloak
32
9
10
+ To setup [ Keycloak] ( https://keycloak.org ) :
33
11
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] ( )
You can’t perform that action at this time.
0 commit comments