forked from ravomavain/Flask-CAS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
94 lines (72 loc) · 2.69 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#!/usr/bin/env python2
#Copyright (C) 2014, Cameron Brandon White
# -*- coding: utf-8 -*-
import setuptools
import textwrap
if __name__ == "__main__":
setuptools.setup(
name="Flask-CAS",
version="1.0.1",
description="Flask extension for CAS",
author="Cameron Brandon White",
author_email="[email protected]",
url="https://github.com/cameronbwhite/Flask-CAS",
long_description=textwrap.dedent("""\
Flask-CAS
=========
Flask-CAS is a Flask extension which makes it easy to
authenticate with a CAS.
CAS
===
The Central Authentication Service (CAS) is a single sign-on
protocol for the web. Its purpose is to permit a user to access
multiple applications while providing their credentials (such as
userid and password) only once. It also allows web applications
to authenticate users without gaining access to a user's security
credentials, such as a password. The name CAS also refers to a
software package that implements this protocol.
(Very short) Setup Tutorial
===========================
First create a Flask instance:
.. code:: python
from flask import Flask
app = Flask(__name__)
Apply CAS on your Flask instance:
.. code:: python
from flask_cas import CAS
CAS(app)
Do needed configuration:
.. code:: python
app.config['CAS_SERVER'] = 'https://sso.pdx.edu'
app.config['CAS_AFTER_LOGIN'] = 'route_root'
Using
=====
After you setup you will get two new routes `/login/`
and `/logout/`.
Reference documentation
=======================
See https://github.com/cameronbwhite/Flask-CAS"""),
packages=[
"flask_cas",
],
install_requires = [
"Flask",
"xmltodict",
],
test_requires = [
"Nose",
"Mock",
],
test_suite = "nose.collector",
include_package_data=True,
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
],
zip_safe=False,
)