Coder Social home page Coder Social logo

flask-kerberos-login's Introduction

Flask Kerberos Authentication

Based on flask-kerberos. If you only require Kerberos authentication, that library works great!

This library is meant to integrate with flask-login to avoid declaring in the application code the dependency on Kerberos.

Testing

Run the unit-tests:

python setup.py develop
pip install -r dev-requirements.txt
python -m unittest discover

Follow the instructions at dsludwig/kerberos_test to set up a test environment.

SSH into the client machine to begin configuration.

vagrant ssh client

Inside the ssh session:

# Install miniconda
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh
bash Miniconda-latest-Linux-x86_64.sh

Create a new ssh session, and execute the following commands:

# Install the library
conda create -n flask_kerberos_test -c binstar flask-kerberos-login

# Activate the environment
source activate flask_kerberos_test

# Get the example code
wget https://raw.githubusercontent.com/ContinuumIO/flask-kerberos-login/master/examples/simple.py

# Execute the server
KRB5_KTNAME=/vagrant/http.keytab python simple.py

Now authenticate with the KDC and access the test site:

kinit admin
curl --negotiate -u : client.example.com:5000

License

Copyright © 2016, Continuum Analytics under the BSD 2-Clause license.

flask-kerberos-login's People

Contributors

dsludwig avatar srossross avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.