Hi
First off all I tried hard to find a solution via search without success,
then decided to write down. Sorry for reviving a - possibly dead - thread.
I am a beginner web2py user. I am trying to setup an auth system which is
Role Based and controlled centrally via CAS.
I will have multiple apps, one of them being dedicated to be CAS provider,
which handles user access control across roles versus apps.
For achieving this kind of functionality first i try to learn basic
concepts of CAS.
For a start exercise I followed the below steps:
1. Copied welcome app to welcas
2. welcas > models > db.py: changed the line as below
auth.define_tables(username=True, signature=False)
3. Copied welcome app to welcons
4. welcons > models > db.py > changed the lines as below
auth = Auth(db,cas_provider =
'http:127.0.0.1:8000/welcas/default/user/cas')
auth.define_tables(username=True, signature=False)
5. Created a user on welcas app
6. Go to welcons/default/index and clicked on login button
7. I expected to get the welcas login screen, instead i get an HTTP 404
error.
web2py version 2.9.11-stable rocket server running on WIN7 64bit
Any idea?
On Thursday, February 21, 2013 at 9:37:05 PM UTC+2, Massimo Di Pierro wrote:
>
> Not sure what example to write.
>
> Make two copies of the welcome app. Call one app1 and one app2. Create and
> account and login in app1.
>
> Edit app2/models/db.py and replace
>
> auth = Auth(db)
>
> with
>
> auth = Auth(db,cas_provider = 'http://127.0.0.1:8000/app1/default/user/cas')
>
> Now try login in app2. and you will get redirected to app1.
>
--
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.