Skip to content
This repository has been archived by the owner on Jun 4, 2020. It is now read-only.
/ flask-web.py-jvm Public archive

This is a demonstration of Flask and web.py with WTForms running on Jython and uses Apache Shiro, Java security framework that performs authentication, authorization, cryptography, and session management.

Notifications You must be signed in to change notification settings

faruken/flask-web.py-jvm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

Apache Shiro is a Java security framework that performs authentication, authorization, cryptography, and session management. You may also be interested in reading this article as well.

This is a demonstration of Flask and web.py with WTForms running on Jython and uses Apache Shiro.

Installation

  1. Please refer to requirements.txt in each folder to install mandatory Python libraries. I have created a virtualenv, you may want to do as well.

  2. Then add Apache Shiro libraries to your CLASSPATH.

  3. Install Jython (I have tested on Jython 2.7a2).

  4. Run the program: jython -Dpython.path=$PYTHONPATH main.py

Default Login

This demonstration uses ini files. A sample ini file is provided (shiro.ini). Default login details are:

  • Username: shiro, Password: shiro

About

This is a demonstration of Flask and web.py with WTForms running on Jython and uses Apache Shiro, Java security framework that performs authentication, authorization, cryptography, and session management.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages