This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
USAGE: | |
1) Create client in Keycloak and enable client authentication + service account roles for it | |
2) Assign "view-realm" role from realm-management client on "service account roles" tab for the client | |
3) Replace keycloak_url and realm_name variables with your Keycloak base dir | |
4) Export client credentials into $CLIENTID and CLIENTSECRET env variable | |
5) python get-keycloak-active-sessions.py | |
''' | |
import requests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo '==================================================' | |
echo '===============Install necessary tools===============' | |
echo '==================================================' | |
sudo yum update | |
sudo yum install git make flex bison libtool automake openssl-devel libevent libevent-devel python-devel gcc-c++ byacc java-1.7.0-openjdk ant | |
echo '==================================================' |