keycloak-export | module allows you to perform a full export | Identity Management library
kandi X-RAY | keycloak-export Summary
kandi X-RAY | keycloak-export Summary
This module allows you to perform a full export from the REST-API, while keycloak is still running. This version currently works with keycloak 8.0.1, but there are versions for other builds (see the releases).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Returns true if the master realm is exported otherwise false
- Gets list of objects from stream
- Gets the master realm
- Checks if the user presents in the file
- Export the realm
- Rewrite the user s credential list
- Imports a single realm
- Imports the main realm
- Exports the given user credential object to a BetterCredential representation
- Deserialize all CredentialRepresentation objects
- Deserialize the user represented by the given JSON parser
- Create a single file import provider
- Sets the credentials
keycloak-export Key Features
keycloak-export Examples and Code Snippets
curl \
-d "client_id=admin-cli" \
-d "username=admin" \
-d "password=password" \
-d "grant_type=password" \
"http://localhost:8080/auth/realms/master/protocol/openid-connect/token"
curl \
-H "Authorization: bearer eyJhbGciOiJSUz..." \
$KEYCLOAK_HOME/bin/jboss-cli.sh --command="module add --name=io.cloudtrust.keycloak-export --resources=target/keycloak-export-8.0.1.jar --dependencies=org.keycloak.keycloak-core,org.keycloak.keycloak-server-spi,org.keycloak.keycloak-server-spi-privat
Community Discussions
Trending Discussions on keycloak-export
QUESTION
I'm trying to figure out what import/export best practices in keycloak version 3.3.0.CR1. As I see in keycloak official page import/export, was described they strategy. Here they example of export to single file json. Goint to /keycloak/bin folder and the run this:
...ANSWER
Answered 2017-Nov-09 at 09:22Basically, you just have to start the exporting Keycloak instance on ports that are different from your main instance. I used something like this just now:
bin/standalone.sh -Dkeycloak.migration.action=export -Dkeycloak.migration.provider=singleFile -Dkeycloak.migration.file=keycloak-export.json -Djboss.http.port=8888 -Djboss.https.port=9999 -Djboss.management.http.port=7777
The important part are all the ports. If you get more error messages, you might need to add more properties (grep port standalone/configuration/standalone.xml
is your friend for finding out property names), but in the end, all error messages stop and you see this message instead:
09:15:26,550 INFO [org.keycloak.exportimport.singlefile.SingleFileExportProvider] (ServerService Thread Pool -- 52) Exporting model into file /opt/jboss/keycloak/keycloak-export.json
[...]
09:15:29,565 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: Keycloak 3.2.0.Final (WildFly Core 2.0.10.Final) started in 12156ms - Started 444 of 818 services (558 services are lazy, passive or on-demand)
Now you can stop the server with Ctrl-C, exit the container and copy the export file away with kubectl cp
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install keycloak-export
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page