A simple Wso2 Identity Server v5.30 example
This project helps to understand how the communication flows shall happen and provides an example for further projects using java and the wso2 identity server.
This project has three entities which communicates among themselves:
- Web Client (React)
- Service Provider (Jersey)
- Wso2 Identity Server
-
Set up the playground example given by wso2
-
git clone
this project wherever you want on your computer -
Copy conf.prp to
${tomcat user's home path}/.wso2Example/
or update the file's location in AuthProperties.java -
Update the copied conf.prp with the correct values
-
Update pom.xml
<outputDirectory>
to matches with your tomcat webapps path (or remove it if you don't mind copying the.war
after every install) -
mvn install
-
If you removed the
<outputDirectory>
deploy it manually to tomcat and openhttp://localhost:8080/wso2Example/
The java API has nothing tricky to develop, just go on.
The react client is normal too, although you must copy the builded js and html files to the webapp path. I've built some scripts to make the developement and build easier, it works only for linux though. Feel free to build the windows' scripts and contribute to the project!
Obs: the web client built in react isn't the most wonderful code in the world. Feel free to improve it.
Any problems, critics, sugestions, warnings, messages or whatever please message me at romulodefarias@gmail.com