Metadata-Version: 2.1
Name: apistellar-cas
Version: 0.0.2
Summary: cas for apistellar
Home-page: https://www.github.com/ShichaoMa/apistellar-cas
Author: cn
Author-email: cnaafhvk@foxmail.com
License: MIT
Description: # CAS for apistellar
        
        ## USEAGE
        ```angular2
        pip install apistellar-cas
        ```
        
        ```python
        from apistellar_cas import nit
        
        # before app init
        init()
        ...
        ```
        
        ```python
        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')
        
        ```
        
        ```python
        # settings.py
        CAS_SERVER = 'https://xxx.xxx.xxx'
        CAS_LOGIN_ROUTE = '/xxxx'
        CAS_AFTER_LOGIN = 'view:welcome:index'
        CAS_USERNAME_SESSION_KEY = "username"
        ```
Keywords: cas apistellar
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.6
Classifier: Intended Audience :: Developers
Classifier: Operating System :: Unix
Description-Content-Type: text/markdown
