Skip to main content

This is a library for Flask for developers from Centre of Technology and Innovation (CTI) from Asia Pacific University to be able to simply implement CAS (Central Authentication Service) by annotating their view functions with the decorators provided in this library.

Quickstart

from flask import Flask
from apu_cas import require_service_ticket 
app = Flask(__name__)

@app.route('/')
@require_service_ticket
def hello_world():
    return 'Hello, World!'

This will secure the endpoints with CAS Authentication and consumer of the secured endpoints will have to pass a valid string of service ticket through as query parameter, 'ticket'.

For example:

GET http://localhost:5000?ticket="ST-575303-I0RYRmVuzlRb4cCkD6jYyw3ISV8ip-172-32-13-200"

The above method is related to CAS REST Protocol, for more information such as how to authenticate with CAS REST protocol, please visit the documentation

Metadata

Release files for apu-cas 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apu-cas 0.2.1
File Size Uploaded
apu_cas-0.2.1.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for apu-cas 0.2.1
File Interpreter ABI Platform
apu_cas-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.1 kB

Release files / apu_cas-0.2.1.tar.gz

Download URL apu_cas-0.2.1.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c6584d4da7143828ac47ab9f9a0447adb44104673912721005917317aa0d5bee
BLAKE2b-256 checksum
How to use checksums
629355374973924e0a8c32785e7a568db18119df9df863750f70d60708a38b2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.8

Release files / apu_cas-0.2.1-py3-none-any.whl

Download URL apu_cas-0.2.1-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7fadf9522856af30fe05b26832cb8e4be7dc8e6b8e35dd016d2b1af025fd0c9c
BLAKE2b-256 checksum
How to use checksums
bbbd5abeac9b1ba3fab9e69b9da8d91451e0c5b1c67d8708c996df521a590b89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.8

Release history Release notifications | RSS feed

0.4.2

1 release file

0.4.1

1 release file

0.4.0

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.2

2 release files

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page