Discussion:
[bottlepy] Basic auth not working for me
Jason Sheldon
2015-11-29 09:57:09 UTC
Permalink
Hi

Im not exactly sure why as to the best of my knowledge Im doing evrything
correctlu

I have a bottle application on https://www.xxxxx.com

Im not wanting an admin section

Thus https://www.xxxxx.com/admin

I have this in my code

def basic_check(user,pwd):

return True

#just to test for now

#return user=="admin" and pwd=="admin"


@route('/admin')

@auth_basic(basic_check)

def home():

output = template('menu' )

return output


With the basic test I kept getting the login box presented and even when I
return True same thing


What am I doing wrong?


Im on Bottle 0.12.9


Thanks
--
--
You are member of the "bottlepy" group at google groups.
See http://groups.google.de/group/bottlepy for mailing list options.
See http://bottlepy.org/ for news and documentation.

---
You received this message because you are subscribed to the Google Groups "bottlepy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bottlepy+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jim Gregory
2016-01-04 20:44:17 UTC
Permalink
I am having the same problem. Authentication works in dev mode using the
local server on localhost, but not on a production server. Any help to
resolve this problem would be appreciated. I, too, and running 0.12.8.

-Jim
Post by Jason Sheldon
Hi
Im not exactly sure why as to the best of my knowledge Im doing evrything
correctlu
I have a bottle application on https://www.xxxxx.com
Im not wanting an admin section
Thus https://www.xxxxx.com/admin
I have this in my code
return True
#just to test for now
#return user=="admin" and pwd=="admin"
@route('/admin')
@auth_basic(basic_check)
output = template('menu' )
return output
With the basic test I kept getting the login box presented and even when I
return True same thing
What am I doing wrong?
Im on Bottle 0.12.9
Thanks
Hi
Im not exactly sure why as to the best of my knowledge Im doing evrything
correctlu
I have a bottle application on https://www.xxxxx.com
Im not wanting an admin section
Thus https://www.xxxxx.com/admin
I have this in my code
return True
#just to test for now
#return user=="admin" and pwd=="admin"
@route('/admin')
@auth_basic(basic_check)
output = template('menu' )
return output
With the basic test I kept getting the login box presented and even when I
return True same thing
What am I doing wrong?
Im on Bottle 0.12.9
Thanks
--
--
You are member of the "bottlepy" group at google groups.
See http://groups.google.de/group/bottlepy for mailing list options.
See http://bottlepy.org/ for news and documentation.

---
You received this message because you are subscribed to the Google Groups "bottlepy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bottlepy+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...