Skip to main content

Utility to parse and verify Islykill authentication, using SAML 2.0

Project description

islykill2
========
Utility to parse and verify Islykill authentication, using SAML 2.0

Requirements
==============

`signxml <https://github.com/kislyuk/signxml>`_

Installation
==============

:code:`pip install islykill2`

Add islykill2 to your INSTALLED_APPS if using django.

Usage
==============

Example in django

from django.contrib.auth import login
from django.http import HttpResponseRedirect
from islykill2 import AuthenticationError, parse_saml

try:
response = parse_saml(
request.POST['token'],
ip
)
username = get_username_by_kt(response.kt)
user = User.objects.get(username=username)
backend = 'django.contrib.auth.backends.ModelBackend'
user.backend = backend
login(request, user)
return HttpResponseRedirect('/home')
except AuthenticationError:
return HttpResponse(401)

Testing
=========

Please write some

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for Islykill2, version 1.0.1rc0
Filename, size File type Python version Upload date Hashes
Filename, size Islykill2-1.0.1rc0.tar.gz (8.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page