cas for apistellar
Project description
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')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
apistellar-cas-0.0.1.tar.gz
(4.4 kB
view hashes)