also see here:
http://web2py.com/books/default/chapter/29/09/access-control#Central-Authentication-Service

Running a web2py CAS provider is as easy as copying the scaffolding app. In 
fact any web2py app that exposes the action

## in provider app
def user(): return dict(form=auth())

is a CAS 2.0 provider and its services can be accessed at the URL

http://.../provider/default/user/cas/login
http://.../provider/default/user/cas/validate
http://.../provider/default/user/cas/logout

(we assume the app to be called "provider").

You can access this service from any other web application (the consumer) 
by simply delegating authentication to the provider:

## in consumer app
auth = Auth(db,cas_provider = 'http://127.0.0.1:8000/provider/default/user/cas')



On Tuesday, July 21, 2015 at 10:20:21 AM UTC-7, Derek wrote:
>
> "Every web2py application is a CAS provider and can optionally be a CAS 
> consumer."
> So any application you have which uses authentication IS a CAS provider.
> This is in the book, which you have read.
>
> http://web2py.com/books/default/chapter/29/09/access-control
>
>
> On Tuesday, July 21, 2015 at 8:41:06 AM UTC-7, Laurent Lc wrote:
>>
>> Hi,
>>
>> I have a central server https://cas.monuniversite.fr
>> I would like to use it as i do with phpcas for example.
>> Could you tell me how to do :
>>
>> eg:
>>
>> 1. modify the model db and add ..
>> 2. crate a controller and add
>> 3. modify apache ..
>>
>> I am a beginner so ... i ve read the doc but i do not understand
>>
>> thank you
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to