[web2py] CAS Auth with HTTPS
Hello everyone. I was taking a look at the JASIG CAS specifications, and I saw two interesting things: 1 - The CAS protocol *requires* HTTPS. I'm trying to use jasig phpCAS as a cas client of my web2py app and it's not workings. When I try to open the php page, the page tries to redirect to a HTTPS URL, even why I set the port to 8000. 2 - The Web2py cas tickets don't seem to conform the CAS specifications(e.g starting with "PT-" or "ST-"). -- Bruno de Oliva Bemfica *Engenheiro de Software* MSN: brunocode...@live.com Mobile: +55 11 8457-0978 http://www.devfranca.com.br http://www.brunobemfica.net http://www.codigofree.net
Re: [web2py] Re: web2py received 2011 BOSSIE Award by InfoWorld.com
Bravíssimo, Massimo! Congratulazioni per te e per tutti i programmatori che hanno colaborato con il web2py. 2011/9/12 encompass > Yup... he just might be. That or he works on the train. SMARTS! I > tried programming on my bike, but it's not very functional. :) > Congrats to Massimo, he has made a framework that works like a dream. > > On Sep 11, 9:30 am, GoldenTiger wrote: > > In this community there's a rumor that he is a cyborg. > > Take a look at posts stats: > > > > 17918 mdipierro > > 2324 Massimo Di Pierro > > 2116 Yarko > > 1814 thade...@thadeusb.com > > 1776 Jonathan Lundell > > 1461 DenesL > > 1454 rochacbruno > > 1401 Anthony > > 1311 pbreit > > 1104 nat...@freezable.com > > > > On 10 sep, 22:46, António Ramos wrote: > > > > > > > > > > > > > > > > > hey, > > > we are here all fascinated about web2py and i was thinking , > > > > > who is Massimo as a man in the society, among friends, does he drive a > > > Ferrary or a fiat 500? > > > > > Does he eat meat or is a vegetarian. Is he good at other stuff or was > just > > > born to bring us web2py ? > > > What are his projects in the future. How does he sees Web2py in 5 > years? > > > > > Let me be curious about a guy that created such a powerfull and funny > tool. > > > > > I envy you :) > > > > > Let me suggest to you all > > > > > Stop programming and give Massimo an Applause for making the clock > ticking > > > > > + > > > > > 2011/9/9 mikech > Congratulations! Hey DePaul you > just got some PR from one of your esteemed > > > > faculty! > -- Bruno de Oliva Bemfica *Engenheiro de Software* MSN: brunocode...@live.com Mobile: +55 11 8457-0978 http://www.devfranca.com.br http://www.brunobemfica.net http://www.codigofree.net
[web2py] custom form trouble
Hi, I'm trying to make a customized login form and when I click the submit button, the screen just blink, but no response. I'm using cas auth. -- Bruno de Oliva Bemfica *Engenheiro de Software* MSN: brunocode...@live.com Mobile: +55 11 8457-0978 http://www.devfranca.com.br http://www.brunobemfica.net http://www.codigofree.net
Re: [web2py] Re: custom form trouble
Thanks for answering, Denes. I included manually the tags because it wasn't been generated by web2py. I thought it very strange, but I'll try again tomorrow(It's 00:33AM in Brazil and I just got home, lol). Thanks for helping me again. 2011/8/16 DenesL > Hi Bruno, > > not sure if this is the problem but I believe you can not have nested > forms. > Your view has: > > {{form.custom.begin}} > > > > and > > > > © 2011, Groupon Inc. Todos os direitos > reservados. > {{form.custom.end}} > > form.custom begin and end contain the opening and closing form> tags, > so you will have an invalid construct of a form inside another. > > Denes -- Bruno de Oliva Bemfica *Engenheiro de Software* MSN: brunocode...@live.com Mobile: +55 11 8457-0978 http://www.devfranca.com.br http://www.brunobemfica.net http://www.codigofree.net
Re: [web2py] Re: custom form trouble
Thanks for you answer, Anthony! Changed the code as you said and it worked! :D 2011/8/17 Anthony > On Tuesday, August 16, 2011 11:35:40 PM UTC-4, Bruno Codeman wrote: >> >> Thanks for answering, Denes. I included manually the tags >> because it wasn't been generated by web2py. I thought it very strange, but >> I'll try again tomorrow(It's 00:33AM in Brazil and I just got home, lol). >> Thanks for helping me again. > > > You have {{form.custom.begin}}, but it should be {{=form.custom.begin}} > (same for form.custom.end). > > Anthony > > -- Bruno de Oliva Bemfica *Engenheiro de Software* MSN: brunocode...@live.com Mobile: +55 11 8457-0978 http://www.devfranca.com.br http://www.brunobemfica.net http://www.codigofree.net
[web2py] CAS Auth redirect loop
Hi again, everyone. Does anyone know why a CAS auth could be entering a loop redirect? -- Bruno de Oliva Bemfica *Engenheiro de Software* MSN: brunocode...@live.com Mobile: +55 11 8457-0978 http://www.devfranca.com.br http://www.brunobemfica.net http://www.codigofree.net
[web2py] Re: CAS Auth redirect loop
Anyone? The app is entering a redirecting loop everytime I try to authenticate... 2011/8/17 Bruno de Oliva Bemfica > Hi again, everyone. Does anyone know why a CAS auth could be entering a > loop redirect? > > -- > Bruno de Oliva Bemfica > *Engenheiro de Software* > MSN: brunocode...@live.com > Mobile: +55 11 8457-0978 > http://www.devfranca.com.br > http://www.brunobemfica.net > http://www.codigofree.net > -- Bruno de Oliva Bemfica *Engenheiro de Software* MSN: brunocode...@live.com Mobile: +55 11 8457-0978 http://www.devfranca.com.br http://www.brunobemfica.net http://www.codigofree.net
Re: [web2py] Re: CAS Auth redirect loop
Everytime I click the login button, I receive a message from firefox/chrome with a 310 error(too_many_redirects) telling me to delete the cookies or allow third-party cookies. I have an app called "login"(the CAS Server) and another one called "ControleDeAtivos"(which should use the other app as a cas provider). Everything's going fine on the client app. When I click the "login" link(on the menu), I'm redirected to the cas server app login page,and after click the submit button, the browser shows the message. The URL showing on browser is this: * http://172.16.7.10:8000/ControleDeAtivos/default/user/login?_next=%2FControleDeAtivos%2Fdefault%2Findex * The db.py file is attached. 2011/8/17 Anthony > Can you show some minimal code that reproduces the problem? > > On Wednesday, August 17, 2011 3:56:32 PM UTC-4, Bruno Codeman wrote: > >> Anyone? The app is entering a redirecting loop everytime I try to >> authenticate... >> >> 2011/8/17 Bruno de Oliva Bemfica >> >>> Hi again, everyone. Does anyone know why a CAS auth could be entering a >>> loop redirect? >>> >>> -- >>> Bruno de Oliva Bemfica >>> *Engenheiro de Software* >>> >>> MSN: brunoc...@live.com >>> >>> Mobile: +55 11 8457-0978 >>> http://www.devfranca.com.br >>> http://www.brunobemfica.net >>> http://www.codigofree.net >>> >>> >> >> >> -- >> Bruno de Oliva Bemfica >> *Engenheiro de Software* >> >> MSN: brunoc...@live.com >> >> Mobile: +55 11 8457-0978 >> http://www.devfranca.com.br >> http://www.brunobemfica.net >> http://www.codigofree.net >> >> -- Bruno de Oliva Bemfica *Engenheiro de Software* MSN: brunocode...@live.com Mobile: +55 11 8457-0978 http://www.devfranca.com.br http://www.brunobemfica.net http://www.codigofree.net db.py Description: Binary data
Re: [web2py] Re: CAS Auth redirect loop
Thanks for your answer, Anthony. I fixed the problem returnin form = auth.login() on the controller, instead of form = auth(). But now, a new problem appeared: The client apps access the CAS server and after the login screen, they're redirected to the CAS app index page, instead of being redirected to the client URL. And, if I try to access the client app page again, the client app tries to authenticate again. It doesn't seem to be authenticated. 2011/8/17 Anthony > Hmm, it appears to have something to do with the fact that you've got a > custom auth_user table, but I can't figure out what. Maybe Massimo can help. > > Anthony > > On Wednesday, August 17, 2011 4:19:58 PM UTC-4, Bruno Codeman wrote: > >> Everytime I click the login button, I receive a message from >> firefox/chrome with a 310 error(too_many_redirects) telling me to delete the >> cookies >> or allow third-party cookies. I have an app called "login"(the CAS Server) >> and another one called "ControleDeAtivos"(which should use the other app as >> a cas provider). Everything's going fine on the client app. When I click the >> "login" link(on the menu), I'm redirected to the cas server app login >> page,and after click the submit button, the browser shows the message. The >> URL showing on browser is this: *http://172.16.7.10:8000/ >> ControleDeAtivos/default/user/login?_next=%2FControleDeAtivos%2Fdefault% >> 2Findex* >> >> The db.py file is attached. >> >> 2011/8/17 Anthony >> >>> Can you show some minimal code that reproduces the problem? >>> >>> On Wednesday, August 17, 2011 3:56:32 PM UTC-4, Bruno Codeman wrote: >>> >>>> Anyone? The app is entering a redirecting loop everytime I try to >>>> authenticate... >>>> >>>> 2011/8/17 Bruno de Oliva Bemfica >>>> >>>>> Hi again, everyone. Does anyone know why a CAS auth could be entering a >>>>> loop redirect? >>>>> >>>>> -- >>>>> Bruno de Oliva Bemfica >>>>> *Engenheiro de Software* >>>>> >>>>> MSN: brun...@live.com >>>>> >>>>> Mobile: +55 11 8457-0978 >>>>> http://www.devfranca.com.br >>>>> http://www.brunobemfica.net >>>>> http://www.codigofree.net >>>>> >>>>> >>>> >>>> >>>> -- >>>> Bruno de Oliva Bemfica >>>> *Engenheiro de Software* >>>> >>>> MSN: brun...@live.com >>>> >>>> Mobile: +55 11 8457-0978 >>>> http://www.devfranca.com.br >>>> http://www.brunobemfica.net >>>> http://www.codigofree.net >>>> >>>> >> >> >> -- >> Bruno de Oliva Bemfica >> *Engenheiro de Software* >> MSN: brunoc...@live.com >> Mobile: +55 11 8457-0978 >> http://www.devfranca.com.br >> http://www.brunobemfica.net >> http://www.codigofree.net >> > -- Bruno de Oliva Bemfica *Engenheiro de Software* MSN: brunocode...@live.com Mobile: +55 11 8457-0978 http://www.devfranca.com.br http://www.brunobemfica.net http://www.codigofree.net