GluuFederation / oxAuth

OAuth 2.0 server and client; OpenID Connect Provider (OP) & UMA Authorization Server (AS)
https://gluu.org/docs/ce
MIT License
424 stars 151 forks source link

Create mvn config for CLI Key Generation tool #495

Closed iromli closed 7 years ago

iromli commented 7 years ago

Is it possible to have a standalone KeyGenerator JAR with all of its dependencies?

The reason is one of Python app I've been working on requires KeyGenerator and it would be nice if I can download a single JAR instead of downloading several JAR files (KeyGenerator itself and its dependencies).

nynymike commented 7 years ago

This is needed for our cluster management application where oxEleven is not used.

willow9886 commented 7 years ago

See this project for an example: https://github.com/mitreid-connect/json-web-key-generator

qbert2k commented 7 years ago

I have added a maven configuration in oxauth client pom file to package the jar file with all the required dependencies.

qbert2k commented 7 years ago

The following is an example of commands to get source from github, build the jar, and run the key generator:

git clone https://github.com/GluuFederation/oxAuth.git

cd oxAuth

mvn clean install -Dmaven.test.skip=true

cd Client/target

java -jar oxauth-client-jar-with-dependencies.jar -algorithms RS256 RS384 RS512 ES256 ES384 ES512 -keystore /PATH_TO_KEYSTORE/mykeystore.jks -keypasswd <PASSWD> -dnname "CN=oxAuth CACertificates" -expiration 365
iromli commented 7 years ago

@qbert2k Thanks.

Anyway, could you build the JAR and put it in our Maven repo? The thing is we are building Debian package that include this JAR and thinking that we want to avoid adding maven and run the mvn command in the packaging.

yurem commented 7 years ago

http://ox.gluu.org/maven/org/xdi/oxauth-client/3.1.0-SNAPSHOT/oxauth-client-3.1.0-SNAPSHOT-jar-with-dependencies.jar

It's part of build process now.

iromli commented 7 years ago

@yurem Thanks.