Re: [web2py] Re: CAS provider and registration

2014-03-14 Thread ureal frank


On Sunday, February 16, 2014 5:10:16 PM UTC, Massimo Di Pierro wrote:

 I am open to change this. Do you want to attempt a patch to address some 
 of the issues?


Any news regarding this issue? I've tested it today with 2.9.4 and the 
behaviour is the same. it would be awesome to have this 'fixed'.
 


 Massimo



 On Sunday, 16 February 2014 05:39:31 UTC-6, Alexei Vinidiktov wrote:

 The first issue is that the client app that uses a cas provider only 
 provides one option: to log in - in the top navigation bar. I think some 
 users would be at a loss as to how to register since there is no explicit 
 link.

 The second and third issues are with the cas provider login page. After 
 the user follows the login link in the cas client app what they see in the 
 cas provider app is the navigation bar that has a drop down menu that says 
 Login. And they see two fields for entering their email and password and 
 a single login button. 

 So the second issue is that coming from the cas client page they can 
 wrongly assume that the login drop down menu in the navigation bar of the 
 cas provider app can only log them in (not register). 

 A work around would be to use the default mode for the auth links in the 
 nav bar which will show all the links (login, registration, lost password) 
 on the nav bar (instead of a drop down). 

 The third issue is with the single login button on the cas provider app. 
 For consistency with the normal (not cas) login pages I think that instead 
 of showing only one login button it would be more user-friendly if the 
 login page in the cas provider displayed the same buttons underneath the 
 email and password boxes - the login, register and lost password button - 
 as the normal login page does.

 The fourth issue is that if the user is not registered and thus goes from 
 the client app to the cas login page and from there to the cas registration 
 page, after a successful registration they are not redirected to the cas 
 client app. I think many users would not know how to return to the cas 
 client app after the registration.


 On Sun, Feb 16, 2014 at 2:34 PM, Tim Richardson 
 t...@growthpath.com.auwrote:

 As long as you allow users to register in your auth settings (and by 
 default they can), there is a register option on the login menu of the cas 
 screen. 
 This is based on trunk.

  -- 
 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 web2py+un...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




 -- 
 Alexei Vinidiktov 



-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: CAS provider and registration

2014-02-16 Thread Alexei Vinidiktov
The first issue is that the client app that uses a cas provider only
provides one option: to log in - in the top navigation bar. I think some
users would be at a loss as to how to register since there is no explicit
link.

The second and third issues are with the cas provider login page. After the
user follows the login link in the cas client app what they see in the cas
provider app is the navigation bar that has a drop down menu that says
Login. And they see two fields for entering their email and password and
a single login button.

So the second issue is that coming from the cas client page they can
wrongly assume that the login drop down menu in the navigation bar of the
cas provider app can only log them in (not register).

A work around would be to use the default mode for the auth links in the
nav bar which will show all the links (login, registration, lost password)
on the nav bar (instead of a drop down).

The third issue is with the single login button on the cas provider app.
For consistency with the normal (not cas) login pages I think that instead
of showing only one login button it would be more user-friendly if the
login page in the cas provider displayed the same buttons underneath the
email and password boxes - the login, register and lost password button -
as the normal login page does.

The fourth issue is that if the user is not registered and thus goes from
the client app to the cas login page and from there to the cas registration
page, after a successful registration they are not redirected to the cas
client app. I think many users would not know how to return to the cas
client app after the registration.


On Sun, Feb 16, 2014 at 2:34 PM, Tim Richardson t...@growthpath.com.auwrote:

 As long as you allow users to register in your auth settings (and by
 default they can), there is a register option on the login menu of the cas
 screen.
 This is based on trunk.

  --
 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 web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
Alexei Vinidiktov

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [web2py] Re: CAS provider and registration

2014-02-16 Thread Massimo Di Pierro
I am open to change this. Do you want to attempt a patch to address some of 
the issues?

Massimo



On Sunday, 16 February 2014 05:39:31 UTC-6, Alexei Vinidiktov wrote:

 The first issue is that the client app that uses a cas provider only 
 provides one option: to log in - in the top navigation bar. I think some 
 users would be at a loss as to how to register since there is no explicit 
 link.

 The second and third issues are with the cas provider login page. After 
 the user follows the login link in the cas client app what they see in the 
 cas provider app is the navigation bar that has a drop down menu that says 
 Login. And they see two fields for entering their email and password and 
 a single login button. 

 So the second issue is that coming from the cas client page they can 
 wrongly assume that the login drop down menu in the navigation bar of the 
 cas provider app can only log them in (not register). 

 A work around would be to use the default mode for the auth links in the 
 nav bar which will show all the links (login, registration, lost password) 
 on the nav bar (instead of a drop down). 

 The third issue is with the single login button on the cas provider app. 
 For consistency with the normal (not cas) login pages I think that instead 
 of showing only one login button it would be more user-friendly if the 
 login page in the cas provider displayed the same buttons underneath the 
 email and password boxes - the login, register and lost password button - 
 as the normal login page does.

 The fourth issue is that if the user is not registered and thus goes from 
 the client app to the cas login page and from there to the cas registration 
 page, after a successful registration they are not redirected to the cas 
 client app. I think many users would not know how to return to the cas 
 client app after the registration.


 On Sun, Feb 16, 2014 at 2:34 PM, Tim Richardson 
 t...@growthpath.com.aujavascript:
  wrote:

 As long as you allow users to register in your auth settings (and by 
 default they can), there is a register option on the login menu of the cas 
 screen. 
 This is based on trunk.

  -- 
 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 web2py+un...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.




 -- 
 Alexei Vinidiktov 


-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [web2py] Re: CAS provider and registration

2014-02-15 Thread Tim Richardson
As long as you allow users to register in your auth settings (and by 
default they can), there is a register option on the login menu of the cas 
screen. 
This is based on trunk.

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [web2py] Re: CAS provider and registration

2014-02-14 Thread Alexei Vinidiktov
How can I add the register button to the cad login form (page)?


On Thu, Aug 29, 2013 at 11:12 PM, Larry Weinberg larrywb...@gmail.comwrote:

 I can get the register to redirect as I wanted by adding this to the CAS
 server application's default controller index function:

if session.service_arg:
 redirect(session.service_arg)

 The only thing missing then is the register button.  It should be
 relatively trivial to add that in.

 I would think it would be nice to have this all work by default or add to
 the book's section on CAS.





  --

 ---
 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 web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
Alexei Vinidiktov

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [web2py] Re: CAS provider and registration

2014-02-14 Thread Alexei Vinidiktov
I need the same functionality for my app. I've checked the trunk but it
doesn't appear to have it implemented.


On Wed, Aug 28, 2013 at 10:24 PM, Larry Weinberg larrywb...@gmail.comwrote:


 It look like trunk gives the same results.

- I create two new apps up casserve and casclient
- In casclient I create auth with this:
   - auth = Auth(db,cas_provider = '
   http://127.0.0.1:8000/casserve/default/user/cas')
- I launch casclient/default/index and the login menu only shows
login.  No registration.
- If I go to login it takes me to casserve.  There I can go to
registration in the menu but it does not take me back to casclient once I
log in. It takes me to casserve/default/index

 What I would wish/expect would happen is one of:

- Cas client would show both login and  register choices that would
redirect to casserve for login or registration and would return to
casclient when done

 or

- Cas client would show a single login or register choice which
would take me to casserve.  Once logged in or registered I would return to
casclient




  --

 ---
 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 web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
Alexei Vinidiktov

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: CAS provider and registration

2013-08-29 Thread Larry Weinberg
I can get the register to redirect as I wanted by adding this to the CAS 
server application's default controller index function:

   if session.service_arg:
redirect(session.service_arg)

The only thing missing then is the register button.  It should be 
relatively trivial to add that in.

I would think it would be nice to have this all work by default or add to 
the book's section on CAS.





-- 

--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: CAS provider and registration

2013-08-28 Thread Larry Weinberg

It look like trunk gives the same results.

   - I create two new apps up casserve and casclient
   - In casclient I create auth with this:
  - auth = Auth(db,cas_provider = 
  'http://127.0.0.1:8000/casserve/default/user/cas')
   - I launch casclient/default/index and the login menu only shows login. 
No registration.
   - If I go to login it takes me to casserve.  There I can go to 
   registration in the menu but it does not take me back to casclient once I 
   log in. It takes me to casserve/default/index

What I would wish/expect would happen is one of:

   - Cas client would show both login and  register choices that would 
   redirect to casserve for login or registration and would return to 
   casclient when done
   
or

   - Cas client would show a single login or register choice which would 
   take me to casserve.  Once logged in or registered I would return to 
   casclient




-- 

--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: CAS provider and registration

2013-08-27 Thread Massimo Di Pierro
which web2py version?

On Monday, 26 August 2013 20:06:34 UTC-5, Larry Weinberg wrote:

 I've followed instructions elsewhere and set up a CAS provider application 
 and a client application that uses the CAS service.
 It looks like the registration options go away from the client app in this 
 flow.

 Once on the CAS provider login screen, I can navigate to registration 
 choice, but when it's done it does not direct back to the client app.

 If this a limitation inherent in the web2py flow? 

 Is this being worked on?




-- 

--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: CAS provider and registration

2013-08-27 Thread Larry Weinberg
I'm using 2.5.1

Once I set up the client to use the CAS provider, the registration options 
go away on the client.

-- 

--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: CAS provider and registration

2013-08-27 Thread Massimo Di Pierro
I believe this is fixed in trunk. You have to update web2py and the 
views/default/users.html in your provider app.

On Tuesday, 27 August 2013 09:33:45 UTC-5, Larry Weinberg wrote:

 I'm using 2.5.1

 Once I set up the client to use the CAS provider, the registration options 
 go away on the client.



-- 

--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[web2py] Re: CAS provider and registration

2013-08-27 Thread Larry Weinberg
Thanks Massimo.  I will try that


On Tuesday, August 27, 2013 1:12:47 PM UTC-7, Massimo Di Pierro wrote:

 I believe this is fixed in trunk. You have to update web2py and the 
 views/default/users.html in your provider app.

 On Tuesday, 27 August 2013 09:33:45 UTC-5, Larry Weinberg wrote:

 I'm using 2.5.1

 Once I set up the client to use the CAS provider, the registration 
 options go away on the client.



-- 

--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.