Oauth2 demo tutorial¶
This tutorial guide you step-by-step through a basic setup of oauth2
authorization against simple demo server.
Before you start¶
For successful passing through this demo it would be necessary to check if the ports 8080 and 8081 are free to use, because as default the demo is set on following url's:
- http://localhost:8080/ for Connect and
- http://localhost:8081/ for Oauth2 server.
In case those ports are busy, the default setup needs to be changed.
Prerequisites for demo Oauth2 server:¶
Maven installation here.
Once you have a working maven, you can download and unzip demo_server
find the application.properties here ~\oauth2_server\src\main\resources\application.properties, where you can configure server and demo user.
As default it is preconfigured as bellow:
Start your demo server from command line by
mvn spring-boot:run command from the root directory of the server. Note that you will be able to compile server with Maven only by using Java JDK. In case of Java JRE it will fail.
Now let's setup Plexus Connect:¶
There is an assumption, that basic Plexus Connect installation has been successfully done and you have deployed at least one schema with some security configuration coming from Instant JChem.
Here you have to create config.properties which is necessary for configuration of pass to Connect.
Conntent of the file:
This configuration file needs to be save somewhere on the server, where Connect application is installed. We recommend to save it in configuration directory ~/.chemaxon/plexus-suite/config.properties
Use following startup option with correct path to this properties file and restart server.
-Dcom.chemaxon.plexus.connect.configuration.propertiesFilePath=~/.chemaxon/plexus-suite/config.properties
If everything above passed without any problem, you should be able to login into Plexus Connect with relevant user.
This short demo example is not for a real usage, it is intended only to clarify, how that given implementation should be used.