apu_cas is a python package for authentication with Asia Pacific University's Central Authentication Service
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.
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'.
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
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size apu_cas-0.2.2-py3-none-any.whl (4.5 kB)||File type Wheel||Python version py3||Upload date||Hashes View hashes|
|Filename, size apu_cas-0.2.2.tar.gz (3.6 kB)||File type Source||Python version None||Upload date||Hashes View hashes|