Flask and web.py meet JVM (or how to use Apache Shiro with them)
This is a small proof-of-concept project that mixes Flask, web.py and Apache Shiro.
Please refer to
requirements.txtin each folder to install mandatory Python libraries. I have created a virtualenv, you may want to do as well.
Then add Apache Shiro libraries to your
Install Jython (I have tested on Jython 2.7a2).
Run the program:
jython -Dpython.path=$PYTHONPATH main.py
This demonstration uses
ini files. A sample ini file is provided (
shiro.ini). Default login details are:
- Username: shiro, Password: shiro