Skip to main content

CAS for apistellar

USEAGE

pip install apistellar-cas
from apistellar_cas import nit

# before app init
init()
...
from apistar import App
from apistellar import Controller, route, get
from apistellar_cas import login_required


@route("/", name="welcome")
class WelcomeController(Controller):

    @get("/")
    @login_required() # add this
    def index(self, app: App) -> str:
        return app.render_template('index.html')
# settings.py
CAS_SERVER = 'https://xxx.xxx.xxx'
CAS_LOGIN_ROUTE = '/xxxx'
CAS_AFTER_LOGIN = 'view:welcome:index'
CAS_USERNAME_SESSION_KEY = "username"

Release files for apistellar-cas 0.0.2

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

Source distribution (sdist)

Source distribution for apistellar-cas 0.0.2
File Size Uploaded
apistellar-cas-0.0.2.tar.gz 4.5 kB Details

Release files / apistellar-cas-0.0.2.tar.gz

Download URL apistellar-cas-0.0.2.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5b45d436f6bc233ce58fb4f95792b42c968bcb1189231c25680be98e31f98d8f
BLAKE2b-256 checksum
How to use checksums
b81b95cd730f2f940479f6bae7c5ad2b8ab65bcb1a52d4fb039d9c6c44a5fece
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file

0.0.1

1 release file

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