A Shell for OSIAM. This project uses JSimpleShell as shell framework.
This project uses gradle, so you can build it using
./gradlew
This guide assumes that the OSIAM docker image is running.
To start the application, just execute the jar-file
java -jar build/libs/shell-1.1-SNAPSHOT-all.jar
The application prints a welcome screen from the JSimpleShell shell framework.
After launching the application, you can connect to your OSIAM instance
connect <endpoint> <redirectUri> <clientId> <clientSecret>
For example
connect http://localhost:8080/osiam http://localhost:5000/oauth2 example-client secret
And log in
login <username> <password>
For example
login admin koala
You can also make use of the command line arguments by starting the shell like
java -jar build/libs/shell-1.1-SNAPSHOT-all.jar
--endpoint http://localhost:8080/osiam
--redirectUri http://localhost:5000/oauth2
--clientId example-client
--clientSecret secret
For both, release and snapshot, be sure to set the environment variables that are necessary for the upload:
export BINTRAY_USER=<USER>
export BINTRAY_KEY=<KEY>
To upload snapshots to oss.jfrog.org, use
./gradlew publish
For information about the bintray gradle plugin, please refer to its README.
To upload releases to bintray, use
./gradlew bintrayUpload