KEYCLOAK-3643 - Fuse examples - refactoring
This commit is contained in:
parent
6e00587468
commit
654601c92c
2 changed files with 73 additions and 5 deletions
|
@ -36,7 +36,7 @@ Base steps
|
||||||
----------
|
----------
|
||||||
|
|
||||||
* Run external instance of Keycloak server on WildFly . It's easiest to run and download Keycloak standalone server. Fuse demo suppose that server is running on [http://localhost:8080/auth](http://localhost:8080/auth)
|
* Run external instance of Keycloak server on WildFly . It's easiest to run and download Keycloak standalone server. Fuse demo suppose that server is running on [http://localhost:8080/auth](http://localhost:8080/auth)
|
||||||
* Import realm `demo` from the file testrealm.json on `examples/fuse/testrealm.json` . See [here](../demo-template/README.md#step-3-import-the-test-realm)
|
* Import realm `demo` from the file `demorealm.json` on `examples/fuse/demorealm.json` . See [here](../demo-template/README.md#step-3-import-the-test-realm)
|
||||||
the details on how to import the realm
|
the details on how to import the realm
|
||||||
* Then download Keycloak examples and build Fuse example, which is needed so the feature repository is added to your local maven repo:
|
* Then download Keycloak examples and build Fuse example, which is needed so the feature repository is added to your local maven repo:
|
||||||
|
|
||||||
|
@ -51,8 +51,9 @@ Running demo on JBoss Fuse 6.2.1 or JBoss Fuse 6.2.0
|
||||||
You just need to download and run JBoss Fuse and then run those commands from the karaf terminal to install the needed features and Keycloak fuse demo (Replace Keycloak versions with the current Keycloak version number):
|
You just need to download and run JBoss Fuse and then run those commands from the karaf terminal to install the needed features and Keycloak fuse demo (Replace Keycloak versions with the current Keycloak version number):
|
||||||
|
|
||||||
```
|
```
|
||||||
features:addurl mvn:org.keycloak/keycloak-osgi-features/1.9.4.Final/xml/features
|
KEYCLOAK_VERSION="2.2.1.Final"
|
||||||
features:addurl mvn:org.keycloak.example.demo/keycloak-fuse-example-features/1.9.4.Final/xml/features
|
features:addurl mvn:org.keycloak/keycloak-osgi-features/$KEYCLOAK_VERSION/xml/features
|
||||||
|
features:addurl mvn:org.keycloak.example.demo/keycloak-fuse-example-features/$KEYCLOAK_VERSION/xml/features
|
||||||
features:install keycloak-fuse-6.2-example
|
features:install keycloak-fuse-6.2-example
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -72,8 +73,9 @@ Similar steps to the instructions for JBoss Fuse 6.2.1 but you need to install a
|
||||||
You just need to download and run JBoss Fuse and then run those commands from the karaf terminal to install the needed features and Keycloak fuse demo (Replace Keycloak versions with the current Keycloak version number):
|
You just need to download and run JBoss Fuse and then run those commands from the karaf terminal to install the needed features and Keycloak fuse demo (Replace Keycloak versions with the current Keycloak version number):
|
||||||
|
|
||||||
```
|
```
|
||||||
features:addurl mvn:org.keycloak/keycloak-osgi-features/1.9.4.Final/xml/features
|
KEYCLOAK_VERSION="2.2.1.Final"
|
||||||
features:addurl mvn:org.keycloak.example.demo/keycloak-fuse-example-features/1.9.4.Final/xml/features
|
features:addurl mvn:org.keycloak/keycloak-osgi-features/$KEYCLOAK_VERSION/xml/features
|
||||||
|
features:addurl mvn:org.keycloak.example.demo/keycloak-fuse-example-features/$KEYCLOAK_VERSION/xml/features
|
||||||
features:install keycloak-fuse-6.3-example
|
features:install keycloak-fuse-6.3-example
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -88,6 +88,57 @@
|
||||||
"account": [ "manage-account" ],
|
"account": [ "manage-account" ],
|
||||||
"realm-management": [ "realm-admin" ]
|
"realm-management": [ "realm-admin" ]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"username" : "john",
|
||||||
|
"firstName" : "John",
|
||||||
|
"lastName" : "Anthony",
|
||||||
|
"email" : "john@hawt.io",
|
||||||
|
"enabled" : true,
|
||||||
|
"credentials" : [
|
||||||
|
{
|
||||||
|
"type" : "password",
|
||||||
|
"value" : "password"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"realmRoles" : [ "viewer" ],
|
||||||
|
"applicationRoles": {
|
||||||
|
"account" : [ "view-profile", "manage-account" ]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"username" : "mary",
|
||||||
|
"firstName" : "Mary",
|
||||||
|
"lastName" : "Kelly",
|
||||||
|
"email" : "mary@hawt.io",
|
||||||
|
"enabled" : true,
|
||||||
|
"credentials" : [
|
||||||
|
{
|
||||||
|
"type" : "password",
|
||||||
|
"value" : "password"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"applicationRoles": {
|
||||||
|
"account" : [ "view-profile", "manage-account" ]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"username" : "root",
|
||||||
|
"firstName" : "Root",
|
||||||
|
"lastName" : "Root",
|
||||||
|
"email" : "root@hawt.io",
|
||||||
|
"enabled" : true,
|
||||||
|
"credentials" : [
|
||||||
|
{
|
||||||
|
"type" : "password",
|
||||||
|
"value" : "password"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"realmRoles" : [ "jmxAdmin" ],
|
||||||
|
"applicationRoles": {
|
||||||
|
"account" : [ "view-profile", "manage-account" ],
|
||||||
|
"realm-management" : [ "realm-admin" ]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"roles" : {
|
"roles" : {
|
||||||
|
@ -197,6 +248,17 @@
|
||||||
"http://localhost:8181/external-config/*"
|
"http://localhost:8181/external-config/*"
|
||||||
],
|
],
|
||||||
"secret": "password"
|
"secret": "password"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"clientId" : "hawtio-client",
|
||||||
|
"surrogateAuthRequired" : false,
|
||||||
|
"fullScopeAllowed" : false,
|
||||||
|
"enabled" : true,
|
||||||
|
"redirectUris" : [ "http://localhost:8080/hawtio/*", "http://localhost:8181/hawtio/*", "http://localhost:8081/hawtio/*" ],
|
||||||
|
"webOrigins" : [ "http://localhost:8080", "http://localhost:8181", "http://localhost:8081" ],
|
||||||
|
"bearerOnly" : false,
|
||||||
|
"publicClient" : true,
|
||||||
|
"protocol" : "openid-connect"
|
||||||
}
|
}
|
||||||
|
|
||||||
],
|
],
|
||||||
|
@ -204,6 +266,10 @@
|
||||||
{
|
{
|
||||||
"client": "ssh-jmx-admin-client",
|
"client": "ssh-jmx-admin-client",
|
||||||
"roles": [ "admin", "jmxAdmin" ]
|
"roles": [ "admin", "jmxAdmin" ]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"client": "hawtio-client",
|
||||||
|
"roles": [ "viewer", "jmxAdmin" ]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
Loading…
Reference in a new issue