diff --git a/.gitignore b/.gitignore index 690730d4..a8f80766 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ -*~ -target +!*/target/ +*/target/* +!openvidu-backend-client/target/openvidu-backend-client.jar + .classpath .project .settings diff --git a/README.md b/README.md index 26977022..11c479c9 100644 --- a/README.md +++ b/README.md @@ -179,16 +179,21 @@ For secret "MY_SECRET", the final header would be > (See [OpenViduRole](#openvidurole) section) #### openvidu-backend-client -A Java package that wraps the HTTP REST operations for making them even easier. Maven dependecy is available: +A Java package that wraps the HTTP REST operations for making them even easier +- Maven dependency + ```xml + + org.openvidu + openvidu-backend-client + ... + + ``` -```xml - - org.openvidu - openvidu-backend-client - ... - -``` +- Jar + ``` + https://github.com/OpenVidu/openvidu/tree/master/openvidu-backend-client/target/openvidu-backend-client.jar + ``` The usage is quite simple: import OpenVidu package and get an **OpenVidu** object. You need to provide to the constructor the IP of your OpenVidu Server and the secret shared with it (initialized by `openvidu.secret=MY_SECRET` property). Then just call the following methods to get a shiny new sessionId or token to be returned to your frontend. diff --git a/openvidu-backend-client/create-jar-package.sh b/openvidu-backend-client/create-jar-package.sh new file mode 100755 index 00000000..95ca243d --- /dev/null +++ b/openvidu-backend-client/create-jar-package.sh @@ -0,0 +1,3 @@ +mvn clean compile package + +cp target/openvidu-backend-client-0.0.1-SNAPSHOT.jar target/openvidu-backend-client.jar diff --git a/openvidu-backend-client/target/openvidu-backend-client.jar b/openvidu-backend-client/target/openvidu-backend-client.jar new file mode 100644 index 00000000..e9366c1d Binary files /dev/null and b/openvidu-backend-client/target/openvidu-backend-client.jar differ diff --git a/openvidu-demo/src/main/resources/application.properties b/openvidu-demo/src/main/resources/application.properties index 0dcc86e0..e74781b1 100644 --- a/openvidu-demo/src/main/resources/application.properties +++ b/openvidu-demo/src/main/resources/application.properties @@ -5,3 +5,8 @@ server.ssl.key-store-password: kurento server.ssl.keyStoreType: JKS server.ssl.keyAlias: kurento-selfsigned server.context-path: / + +kms.uris=[\"ws://localhost:8888/kurento\"] + +openvidu.secret: MY_SECRET +openvidu.security: true \ No newline at end of file