[web2py] Auth - overlapping permissions problem

2020-07-16 Thread Paul Ellis
n allocated for every little thing. i.e. customer maintenence, customer delete, product related permissions, product permissions where special knowledge is required... Is this possible with the Web2py Auth System? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http

[web2py] auth wiki page extra fields

2019-05-03 Thread 'Cyrus Oktor' via web2py-users
Hello, the auth.wiki permits to add extra fields to a wiki page, for instance auth.settings.extra_fields["wiki_page"] = [Field('cargar', 'upload'), ] The field appears in the wiki edit menu, but how can it be rendered in the view? Thank you -- Resources: - http://web2py.com - http://web2py.com/

[web2py] Auth issues when using ldap

2018-10-26 Thread lbjc1978
I am trying out the ldap authentication from an app but encountered this error: File "/home/mau/web2py/gluon/globals.py", line 421, in self._caller = lambda f: f() File "/home/mau/web2py/applications/schoop/controllers/default.py"

[web2py] Auth question

2018-10-16 Thread Rahul
Hey Everyone, Greetings! I have a question. I went through Auth documentation and understood that we can add extra fields to the Auth tables. However, I still want to be a little more clear to achieve below - I am currently using three fields for a multi-tenant system like workspace, user

[web2py] web2py auth through AWS cognito

2018-09-17 Thread kryton4567
I am changing the login authentication to be handled by AWS Cognito and require some clarification around the approach as cannot get it to work correctly 1. I have created a class cog_login that has been assigned to the auth.settings.login_methods = [cog_login] 1. One of the fu

[web2py] auth tables rname

2018-07-13 Thread fiubarc
Hello, somebody knows how to set rname on auth tables?? It is possible without redefine each table?? I need it because I use Postgres and users in a separete schema. Thanks!! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source c

[web2py] auth decorator with rest api

2018-04-12 Thread yogeshwar khalkar
Hi All, I was implementing the @auth.requires_login() with @request.restful() but it not working. It redirects me every time even if I am login. @auth.requires_login() @request.restful() def getActivity(): def POST(): data = "do Something" return json(data) retu

Re: [web2py] Re: How to verify woocommerce webhook signature in web2py auth decorator

2018-03-25 Thread Manuele Pesenti
Il 25/03/18 00:51, Patrick Rodrigues ha scritto: > I was developing the same feature for my website today, and this help > me a lot. > In my case I was using Dango Rest Framework, and I was using > request.data and parsing it to JSON, insted of using request.body. > But now it works, thank you abou

[web2py] Re: How to verify woocommerce webhook signature in web2py auth decorator

2018-03-25 Thread Patrick Rodrigues
I was developing the same feature for my website today, and this help me a lot. In my case I was using Dango Rest Framework, and I was using request.data and parsing it to JSON, insted of using request.body. But now it works, thank you about this conversation. Em quarta-feira, 28 de fevereiro de

Re: [web2py] Re: How to verify woocommerce webhook signature in web2py auth decorator

2018-03-17 Thread Manuele Pesenti
Il 16/03/18 15:59, Anthony ha scritto: > I'm not sure if it includes the entire original HTTP message or just > the request body, but you can try request.env['wsgi.input']. If that > doesn't work, web2py (and probably any WSGI-compliant framework) would > not have access to the original HTTP messag

Re: [web2py] Re: How to verify woocommerce webhook signature in web2py auth decorator

2018-03-16 Thread Anthony
> > Before to definitely fly to other places where to find answers to my > problem I have one little question related with web2py... > In woocommerce documentation they say this about request signature: > > "X-WC-Webhook-Signature - a base64 encoded HMAC-SHA256 hash of the > payload."[1] > > Til

Re: [web2py] Re: How to verify woocommerce webhook signature in web2py auth decorator

2018-03-16 Thread Manuele Pesenti
On 15/03/2018 22:17, Manuele Pesenti wrote: You might be better off getting help from folks who know WooCommerce, as this issue does not appear to be web2py specific. Yes for sure! Thanks a lot.     M. Before to definitely fly to other places where to find answers to my problem I have one

Re: [web2py] Re: How to verify woocommerce webhook signature in web2py auth decorator

2018-03-15 Thread Manuele Pesenti
Il 15/03/18 20:21, Anthony ha scritto: > Hard to say what's wrong. Where did you get that signature and request > body? You might be better off getting help from folks who know > WooCommerce, as this issue does not appear to be web2py specific. > Yes for sure! Thanks a lot.     M. -- Resources:

Re: [web2py] Re: How to verify woocommerce webhook signature in web2py auth decorator

2018-03-15 Thread Anthony
Hard to say what's wrong. Where did you get that signature and request body? You might be better off getting help from folks who know WooCommerce, as this issue does not appear to be web2py specific. Anthony On Thursday, March 15, 2018 at 1:09:31 PM UTC-4, Manuele wrote: > > On 01/03/2018 00:50

Re: [web2py] Re: How to verify woocommerce webhook signature in web2py auth decorator

2018-03-15 Thread Manuele Pesenti
On 01/03/2018 00:50, Anthony wrote: I think you're on the right track. If you need the original request body to verify the signature, request.body.read() should do it. Does that not work? Hi Anthony, actually no :( it doesn't work, here[1] I tried to extrapolate the very essential code in ord

Re: [web2py] Re: How to verify woocommerce webhook signature in web2py auth decorator

2018-03-01 Thread Anthony
> > On Wednesday, February 28, 2018 at 3:50:16 PM UTC-8, Anthony wrote: >> >> I think you're on the right track. If you need the original request body >> to verify the signature, request.body.read() should do it. Does that not >> work? >> >> Also, I don't think you need the decorator and nested

Re: [web2py] Re: How to verify woocommerce webhook signature in web2py auth decorator

2018-03-01 Thread Manuele Pesenti
On 01/03/2018 03:25, Dave S wrote: Don't you want a dummy parameter on verify_signature(), to prevent it being a URL-visible function? well actually it can even stay inside the models not a controller... in that case if it's not decorate as a service it cannot be visible. right?        M.

Re: [web2py] Re: How to verify woocommerce webhook signature in web2py auth decorator

2018-02-28 Thread Dave S
On Wednesday, February 28, 2018 at 3:50:16 PM UTC-8, Anthony wrote: > > I think you're on the right track. If you need the original request body > to verify the signature, request.body.read() should do it. Does that not > work? > > Also, I don't think you need the decorator and nested function.

Re: [web2py] Re: How to verify woocommerce webhook signature in web2py auth decorator

2018-02-28 Thread Anthony
I think you're on the right track. If you need the original request body to verify the signature, request.body.read() should do it. Does that not work? Also, I don't think you need the decorator and nested function. Just write a simple function and call it at the beginning of the handler: def v

Re: [web2py] Re: How to verify woocommerce webhook signature in web2py auth decorator

2018-02-28 Thread Manuele Pesenti
Il 28/02/18 17:10, Anthony ha scritto: > You could parse the request body yourself, but web2py will do it > automatically and put the variables in request.post_vars (if JSON is > posted, its keys will become the keys of request.post_vars). > > I'm not sure what you mean by "check the request.post_v

Re: [web2py] Re: How to verify woocommerce webhook signature in web2py auth decorator

2018-02-28 Thread Anthony
t_vars.arg. The "action" value will also be in one of the request headers. Not sure if you need or care about "arg". > > and I don't think there is much gained by putting it inside > > ok... but why not? > It's just another level of indirect

Re: [web2py] Re: How to verify woocommerce webhook signature in web2py auth decorator

2018-02-28 Thread Manuele Pesenti
Thank Antony, On 28/02/2018 15:50, Anthony wrote: The webhook request headers will be in request.env.http_x_wc_webhook_[specific header] (e.g., request.env.http_x_wc_webhook_signature). ok got it! It looks like WooCommerce makes a POST request, so the values posted should end up in reque

[web2py] Re: How to verify woocommerce webhook signature in web2py auth decorator

2018-02-28 Thread Anthony
The webhook request headers will be in request.env.http_x_wc_webhook_[specific header] (e.g., request.env.http_x_wc_webhook_signature). It looks like WooCommerce makes a POST request, so the values posted should end up in request.post_vars. As an aside, you can probably simplify your code to j

[web2py] How to verify woocommerce webhook signature in web2py auth decorator

2018-02-28 Thread Manuele Pesenti
Hi! I need to develop a web service that listen to webhook calls from a woocommerce site, I thought to write a little check class to pass to auth.requires decorator like the following: class HookCheck(object):     secret = ''     def __init__(self):     super(HookCheck, self).__init__()

Re: [web2py] auth actions_disabled in 2.16.1

2018-01-30 Thread Johann Spies
It seems that the menu option is hard coded in the default layout.html. Regards Johann On 30 January 2018 at 12:24, Johann Spies wrote: > On 2 January 2018 at 20:37, 黄祥 wrote: >> web2py latest version auth actions_disabled doesn't work anymore >> models/db.py >> #auth.settings.actions_disabled

Re: [web2py] auth actions_disabled in 2.16.1

2018-01-30 Thread Johann Spies
On 2 January 2018 at 20:37, 黄祥 wrote: > web2py latest version auth actions_disabled doesn't work anymore > models/db.py > #auth.settings.actions_disabled = > configuration.take('auth.actions_disabled') > auth.settings.actions_disabled = ['profile', 'register'] > > result > the url to sign up is ex

[web2py] auth actions_disabled in 2.16.1

2018-01-02 Thread 黄祥
web2py latest version auth actions_disabled doesn't work anymore *models/db.py* #auth.settings.actions_disabled = configuration.take('auth.actions_disabled') auth.settings.actions_disabled = ['profile', 'register'] *result* the url to sign up is exist, when clicked the sign up it return 404 NOT

Re: [web2py] Re: [web2py/web2py] Auth add_membership and del_membership mistakenly alter the logged-in user's session (#1638)

2017-06-07 Thread Richard Vézina
That what I thought too... filesystem is slow, database would requires a new auth table or at least a new field (system reserved)... What's about a persistent auth parameters?? We could make it persitent from request to request in cache as long as cache (RAM) can be used by web2py internal code??

[web2py] Re: [web2py/web2py] Auth add_membership and del_membership mistakenly alter the logged-in user's session (#1638)

2017-06-06 Thread Anthony
> > When you mention "persist the list of flagged users", it mean that there > is no such thing as persistence in web2py and that at each request web2py > is completely "ignorant" about any given state it may find itself in?? > Well, each request is executed independently, though there are mean

[web2py] Re: [web2py/web2py] Auth add_membership and del_membership mistakenly alter the logged-in user's session (#1638)

2017-06-06 Thread Richard Vézina
We could continue this conversation here... When you mention "persist the list of flagged users", it mean that there is no such thing as persistence in web2py and that at each request web2py is completely "ignorant" about any given state it may find itself in?? I guess using session as a persiste

[web2py] Auth change password confirmation

2017-04-09 Thread Alfonso Serra
I cant check if the auth form to change a password is accepted. I have been debugging a post and post_vars and form.vars are empty. I dont know whats going, the password is changed succesfully but i cant display a message since i dont know how to check the form's state. I have the profile and c

[web2py] Auth -- members of both groups

2017-02-02 Thread Dave S
I'm trying to give members of 2 different groups access to functionX. In the spirit of http://web2py.com/books/default/chapter/29/09/access-control#Combining-requirements> I tried @auth.requires(auth.has_membership(role=green) or auth.has_membership(role= blue)) deffunctionX(): but this di

[web2py] auth on GAE 'unable to send email'

2017-01-06 Thread David Manns
Running 2.14.6 in production on GAE. Notice can't send the verification's so can't register or recover passwords. (have another problem with lost passwords which reported separately). Using all the standard setup to initialize auth.settings.mailer in db.py AND that same auth.settings.mailer is

[web2py] auth groups and permission

2016-12-30 Thread Biplov Bhandari
Hi, I want to have a fixed user groups (eg. editor, publishers and admin). I don't want the default one group to one member. How do I do that? Best, Biplov -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.

[web2py] auth event logging for password reset

2016-08-30 Thread Ivan
After looking at the event logging behaviour for a password reset request, I think that: 1. the default message for the request should be 'User %(id)s Password reset *requested*' (because the psw is not yet changed) 2. it seems that the log message when the user change his password (by the ema

[web2py] auth, db access via current in module

2016-07-02 Thread lucas
hello one and all, i read the article in the book: http://web2py.com/books/default/chapter/29/4#Sharing-the-global-scope-with-modules-using-the-current-object and so i added to my db.py model file after the assignment of db and auth: from gluon import current current.db, current.auth = db, auth

Re: [web2py] auth on cas and consume data from some apps

2016-05-17 Thread Massimiliano
Another timeline that clarify the situation. with @auth.requires_login() 1. User login on app A 2. User follow the link on app B/function_decorated 3. App A try to get data from app B all is working well Thank you On Tue, May 17, 2016 at 11:34 AM, Massimiliano wrote: > Hello, > > I've a syste

[web2py] auth on cas and consume data from some apps

2016-05-17 Thread Massimiliano
Hello, I've a system composed of some apps sharing auth on *cas*. I would like that app A could get json data from app B but it seems not possibile if the user doesn't login in each app before. Jus to to clarify. Timeline. 1. User login on app A 2. App A try to get data from app B but He got

[web2py] Auth with service

2016-02-20 Thread Mirco Barone
I have to implement an authentication through one of my soap service, you have any advice? thank you -- IN. VA. S.p.A. Loc. L'Île-Blonde, 5 11020 - Brissogne (AO) - Italy Tel. 0165 367711 - Fax 0165 262336 e-mail: i...@invallee.it

[web2py] Auth User split by tables

2016-01-31 Thread rajmathur6431
Hello web2py community. I am a new user and I have to say, web2py saves the day by saving so much time over a full stack framework which requires so much work. Anyway, going to ask a question tothe community. How to custom create auth_user so instead of adding extra fields to the auth_user we c

[web2py] Auth extra fields

2016-01-05 Thread greenpoise
if auth.is_logged_in(): this_store=auth_user.store else: this_store=None Is there a way to extract the extra fields value in the controller like the code above? Thanks -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] auth new user registration even after login

2015-11-23 Thread Kalpish Singhal
I want my admin user group can only register new members and their password should be send to respective user mail id using auth_user table, how to do this when auth is logged in because no signup option is their after login in the menu? -- Resources: - http://web2py.com - http://web2py.com/bo

[web2py] auth tables not visible in appadmin

2015-11-04 Thread Red Beard
Hi, My problem is that the auth tables do not appear in appadmin, though the system allows me to register users, and it seems to remember them. I am following the example in the book (chapter 3, overview: http://www.web2py.com/books/default/chapter/29/03/overview) I have left the model db.py

Re: [web2py] Auth Roles

2015-06-15 Thread Michele Comitini
I think what you need is in the book: http://web2py.com/books/default/chapter/29/09/access-control#Authorization 2015-06-14 23:48 GMT+02:00 : > Hi, > > Excellent product web2py but still trying to get my head around some of > the structure > and some burning questions from the documentation. > >

[web2py] Auth Roles

2015-06-15 Thread dt0901
Hi, Excellent product web2py but still trying to get my head around some of the structure and some burning questions from the documentation. Question 2: Hi at the moment every time a user registers, a new 'role' is created for the user. Basically I want three roles: USER STAFF ADMIN Admin goes

[web2py] Auth callback settings for reset_password and request_reset_password

2015-06-07 Thread James McGlynn
Hello, I have a few questions about using callbacks with reset_password and request_reset_password. I'm using web2py 2.9.5, but I checked the corresponding code from the master branch and github in gluon/tools.py and it seems to be the same. Why does the callback auth.settings.reset_password_

[web2py] auth define_tables username=False not working on GAE

2015-03-21 Thread Sébastien Loix
Hello, I can't get the username=False inside the auth.define_tables to work while developing on GAE locally. I need to add a custom field "username" in the auth table that I do like this: auth.settings.extra_fields['auth_user'] = [Field('username', length=128, default="", unique=True)] then

[web2py] Auth Users Session

2014-12-22 Thread Oliver
Hi All, I really enjoy discovering the beauty of web2py. Just got a newbie question :) If I create multiple apps and use one db or sharing one db to all apps, can the login session be shared between apps? Thanks. For example from the default, we have the admin(which is lock), welcome and ex

[web2py] Auth related emails, via web2py scheduler

2014-03-27 Thread Kiran Subbaraman
Hello, I took a look at this chapter: http://web2py.com/books/default/chapter/29/08/emails-and-sms#Sending-messages-using-a-background-task, and got this to work - Am able to send emails via a background task. I was wondering how I could make the Auth related emails also to be sent via this bac

Re: [web2py] Auth with multiple E-mail addresses

2014-02-24 Thread Damien
Thank you for your answers. I think at this point my best option is to rewrite a class inheriting from Auth. If it works well I can publish it and we can discuss if it might be interesting to merge it to the trunk. Le dimanche 23 février 2014 04:41:24 UTC-5, mweissen a écrit : > > I think a new

Re: [web2py] Auth with multiple E-mail addresses

2014-02-23 Thread Martin Weissenboeck
I think a new class could do the job. You could modify your db.py Replace auth = Auth(db, hmac_key=Auth.get_or_create_key()) by class MyAuth(Auth): # your code pass auth = MyAuth(db, hmac_key=Auth.get_or_create_key()) ​Regards, Martin ​ 2014-02-23 0:21 GMT+01:00 Damien : > > I would l

[web2py] Auth with multiple E-mail addresses

2014-02-22 Thread Damien
I would like to associate to my users multiple E-mail addresses and phone numbers. I would like these users to be able to authenticate with any (verified) E-mail address or phone number. I am wondering what would be the best approach to achieve this. One idea would be to modify the existing A

[web2py] auth signature and enable record versioning

2014-01-03 Thread 黄祥
hi, i wonder what is the correlation between auth signature and enable record versioning. e.g. # on_define_bank def on_define_bank(table): # notnull table.bank.notnull = True # create table : bank db.define_table('bank', Field('bank'), auth.signature, on_define = on_define_bank, format = '%(

[web2py] Auth() vs auth()

2013-12-18 Thread Carlos Zenteno
Newbee here... I know that Auth() is the class in gluon and it initial use: auth = Auth(db) But I have seen some uses like fom = auth() in some controllers. is there an auth() function besides the Auth() class? where can I find this kind of stuff on my own? THanks... -- Resources: - http://w

Re: [web2py] Auth User Table Modifications

2013-10-29 Thread Richard Vézina
Hmmm... I think they are required. Why would you do that? I am pretty sure these fields are required by Auth, I rather create my own user table than altering like that... Richard On Tue, Oct 29, 2013 at 10:10 AM, wrote: > I was wondering how I would go about removing First Name and Last Name

[web2py] Auth User Table Modifications

2013-10-29 Thread archeaneon
I was wondering how I would go about removing First Name and Last Name from the user table and making email not required. Is this possible without breaking Auth? Again, thank you very much for your support! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://git

Re: [web2py] Auth modal redirects to profile instead of index

2013-09-24 Thread Richard Vézina
I think we will need more code to understand. What you are doing is not "standard". Notice also, Bootstrap Modal had bug in the pass and was submitting all the form present on the same page... I wrote a post about that. I don't think this issue is gone and I think I had found a work around but don'

Re: [web2py] Auth modal redirects to profile instead of index

2013-09-24 Thread Massimo Di Pierro
Or without c and f: auth.settings.login_next = URL('default', 'index') On Tuesday, 24 September 2013 13:29:27 UTC-5, Richard wrote: > > You can use this in model : > auth.settings.login_next = URL(c='default', f='index') > > Richard > > > On Tue, Sep 24, 2013 at 2:09 PM, raferbop > > wrote: > >>

Re: [web2py] Auth modal redirects to profile instead of index

2013-09-24 Thread raferbop
Thanks Richard, I just tried it but it seems to have been ignored and Im still being redirected to /default/user/profile -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Rep

Re: [web2py] Auth modal redirects to profile instead of index

2013-09-24 Thread Richard Vézina
You can use this in model : auth.settings.login_next = URL(c='default', f='index') Richard On Tue, Sep 24, 2013 at 2:09 PM, raferbop wrote: > def index(): >return dict(logform=auth.login(),regform=auth.register()) > > I put these two forms from the Auth module on the index page, inside a >

[web2py] Auth modal redirects to profile instead of index

2013-09-24 Thread raferbop
def index(): return dict(logform=auth.login(),regform=auth.register()) I put these two forms from the Auth module on the index page, inside a modal but when I login/register I am redirected to a profile page instead of the index page. What can I do to prevent the redirect or go the index pag

[web2py] Auth-less authentication

2013-08-16 Thread Scott Hunter
For historical reasons, I have an appliance which does not use Auth, but its own table of users. Passwords get stored in a similar way (that is, using a normal SQLFORM and a password field). How, then, can I verify a user's password, since I am not using auth & thus do not have (direct) acces

[web2py] auth, redirect after login

2013-06-27 Thread royski
hello together, my problem is , i want a simply redirect after a user is logged in. i am using the auth setup from web2py: my db.py: auth = Auth(db) auth.define_tables(username=True) auth.settings.login_next = URL('welcome') this has no effect, after a user login the index page is still

[web2py] Auth registration adding a registration key with requires_approval disabled

2013-06-26 Thread Isaac Dontje Lindell
I have this in my db.py model: ## configure auth policy auth.settings.registration_requires_verification = False auth.settings.registration_requires_approval = False auth.settings.reset_password_requires_verification = True If I register for the application (at %app%/default/user/register), it go

[web2py] auth(), check if name and password from login is in the database

2013-06-26 Thread royski
hello, i am beginner in web2py, and my problem is the login this is the controller: def index(): user_auth = auth.login() user_auth.add_button('register me', URL('register_user')) #if auth.login():on this point i want authentication if the username and password are allre

[web2py] guidelines to implement oauth with basic web2py auth (noob question)

2013-04-03 Thread ctrlSoft
i want in my application to implement 2 kind of auth(basic and oauth in my case facebook) 1)should i keep it separate? or to generate an entry in basic for every external first login 2)posibility to merge them latter 3)should i create a custom Auth() for external login? i'm a little confused wit

[web2py] auth ajax - how about this way?

2013-04-01 Thread yashar
is this true that SQLFORMs redirected to _next value when SQLFORM is accepted? so i did this: def lost_password(): from gluon.serializers import json try: form = auth.retrieve_password() except: ### i assume that form redirected only if email send to user return json

[web2py] Auth with Janrain but still require "registration"

2013-03-27 Thread DeanK
So I want to be able to use Janrain, but I also want to have people have to register. For my app initially i need to control when registration is open and when it is not, and currently using the examples i've seen, enabling Janrain makes anyone who can authenticate with one of the third party

[web2py] Re: web2py auth question

2013-02-18 Thread Leonel Câmara
You can use LOAD to put the login form on the homepage. It's also possible to do it in a completely ajaxified way, I did it using login_bare. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receivin

[web2py] web2py auth question

2013-02-17 Thread jburosh
I have a web2py application and was curious how to go to the public website, enter username/password in a form (or iframe) and if authentication is successful, it would load the application into the browswer window. Right now you click a login button and it redirects to web2py's login form. I

Re: [web2py] Re: Integrating iPhone device tokens into web2py auth

2013-02-15 Thread howesc
Yes, that sounds similar to what i do. - i created a custom auth user table, it happens to be called end_user (though it can be called auth_user): auth.settings.table_user_name = 'end_user' auth.settings.table_user = db.end_user.table auth.define_tables() - My end_user t

Re: [web2py] Re: Integrating iPhone device tokens into web2py auth

2013-02-13 Thread chris_g
Thanks for all the interesting responses. Here is Apple's description of the Push notificaiton process: http://developer.apple.com/library/mac/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ApplePushService/ApplePushService.html There appears to be a similar framework for

Re: [web2py] Re: Integrating iPhone device tokens into web2py auth

2013-02-12 Thread Alec Taylor
Hmm; good point. On Wed, Feb 13, 2013 at 4:30 AM, howesc wrote: > for our system we have "anonymous" users (users with no email address), and > "known" users (users with an email address. > > Apple does not expose the MAC address, the IMEI or the apple UDID of iOS > devices to developers. their

Re: [web2py] Re: Integrating iPhone device tokens into web2py auth

2013-02-12 Thread howesc
for our system we have "anonymous" users (users with no email address), and "known" users (users with an email address. Apple does not expose the MAC address, the IMEI or the apple UDID of iOS devices to developers. their policies strictly forbid the use of hardware identifiers in apps distrib

Re: [web2py] Re: Integrating iPhone device tokens into web2py auth

2013-02-11 Thread Alec Taylor
On Tue, Feb 12, 2013 at 4:29 AM, howesc wrote: > Thanks Alec, that will be a nice contribution. > > re my "special odd pain in the rear-end" login flow.well we (the > engineers) failed to sell that to the business. users can make purchases > via apple without a proper logged in account, and w

Re: [web2py] Re: Integrating iPhone device tokens into web2py auth

2013-02-11 Thread Kenny Chung
a much cleaner, more secure, streamlined and >> self-contained model than your current one. >> >> On Sun, Feb 10, 2013 at 9:33 AM, howesc wrote: >> > - Apple explicitly does not allow using the hardware identifier in >> your >> > app, and will reject app submission

Re: [web2py] Re: Integrating iPhone device tokens into web2py auth

2013-02-11 Thread howesc
rrent one. > > On Sun, Feb 10, 2013 at 9:33 AM, howesc > > wrote: > > - Apple explicitly does not allow using the hardware identifier in your > > app, and will reject app submission that do that. because of this each > app > > install "logs in" first as an

Re: [web2py] Re: Integrating iPhone device tokens into web2py auth

2013-02-10 Thread Alec Taylor
ifier in your > app, and will reject app submission that do that. because of this each app > install "logs in" first as an anonymous user. > - website users use standard web2py auth > - app connections to the server use our modified OAuth API implementation. > this f

Re: [web2py] Re: Integrating iPhone device tokens into web2py auth

2013-02-09 Thread howesc
- Apple explicitly does not allow using the hardware identifier in your app, and will reject app submission that do that. because of this each app install "logs in" first as an anonymous user. - website users use standard web2py auth - app connections to the server use our modified

Re: [web2py] Re: Integrating iPhone device tokens into web2py auth

2013-02-09 Thread Kenny Chung
an you give us more details? >> >> On Friday, 8 February 2013 20:31:14 UTC-6, howesc wrote: >>> >>> i have millions of APNS tokens! i'd share, but they are tied to an >>> app >>> >>> i did not tie APNS tokesn to web2py auth, but i adde

[web2py] Re: Integrating iPhone device tokens into web2py auth

2013-02-09 Thread howesc
wrote: > > I do not know how this works. Can you give us more details? > > On Friday, 8 February 2013 20:31:14 UTC-6, howesc wrote: >> >> i have millions of APNS tokens! i'd share, but they are tied to an app >> >> i did not tie APNS tokesn to web2py

Re: [web2py] Integrating iPhone device tokens into web2py auth

2013-02-08 Thread Alec Taylor
You'd probably be better off using OAuth2… On Fri, Feb 8, 2013 at 12:22 PM, chris_g wrote: > I'm looking into supporting Apple push notifications in an iPhone app that > connects to a web2py server. > In order to know which devices to push details to, web2py's auth module > would presumably need

[web2py] Re: Integrating iPhone device tokens into web2py auth

2013-02-08 Thread Massimo Di Pierro
I do not know how this works. Can you give us more details? On Friday, 8 February 2013 20:31:14 UTC-6, howesc wrote: > > i have millions of APNS tokens! i'd share, but they are tied to an app > > i did not tie APNS tokesn to web2py auth, but i added fields to my end >

[web2py] Re: Integrating iPhone device tokens into web2py auth

2013-02-08 Thread howesc
i have millions of APNS tokens! i'd share, but they are tied to an app i did not tie APNS tokesn to web2py auth, but i added fields to my end user table, and the device uses my REST JSON API to POST the APNS tokens to the server and update the user. we don't use the APNS token a

[web2py] Integrating iPhone device tokens into web2py auth

2013-02-07 Thread chris_g
I'm looking into supporting Apple push notifications in an iPhone app that connects to a web2py server. In order to know which devices to push details to, web2py's auth module would presumably need to maintain "Device Tokens". I'm curious if anyone has implemented a solution that takes care of th

[web2py] Auth with Wordpress

2013-02-05 Thread Kenneth
Hello, I have a case where an old site is done with Wordpress as front and authentication from an external database. Showing of content is then handled with somekind of XML viewer. Site contains 12 manuals. Manual 13 is done with web2py and the idea is to though out the very old Wordpress and

[web2py] Auth login causing closed database

2013-01-29 Thread pinwc4
Recently I upgraded to 2.32 from an older 1.99 version and have been running into an odd auth problem. I have 2 copies of an application hosted on a VM under one instance of web2py using Apache/WSGI. I can log into one of the apps however if I then try to login to the other copy I instead get

[web2py] Auth login with Firefox

2013-01-18 Thread villas
Using trunk / Win Vista / Login works OK with Chrome and IE, but fails with Firefox. I enter User and Password and click Login. The fields are cleared and the login form redisplayed, but no login. I tried clearing session files and all cookies and other browser data, but cannot get it working

[web2py] Auth Wiki functionality?

2012-10-16 Thread Bill Thayer
Hello everyone, Thanks to Allen, Villas, of course Massimo among a few others I have web2py auth.wiki with Oracle storing the media blobs and all the pages. I believe I can use the wiki features in a structure way to improv productivity and cross department functionality in my workplace. Now

[web2py] auth module not portable between mac and linux?

2012-10-12 Thread vince
i tried web2py on linux with source code version and on osx with the mac version, both connected to the same mysql backend. i have notice the user created on linux can only access on linux, login from osx will be invalid login. it's the same on osx the other way around. --

[web2py] Auth Decorator / Model Question.

2012-09-03 Thread Kevin C
what should happen: User visits theirname.oursite.com/admin Web2py retrieves users_id field from stores table (This field assigns ownership of each store to a user id) Web2py auth decorator should ensure that the logged in user ID is that of the store owner I understand how to write the decorator

Re: [web2py] 'Auth' object has no attribute 'use_username'

2012-09-01 Thread Massimo Di Pierro
I see. So you propose auth.navbar without auth.define_tables. Now I understand and this makes sense. Please open a ticket or send me a patch, whatever is easier. ;-) Massimo On Saturday, 1 September 2012 11:51:40 UTC-5, Anthony wrote: > > Many requests don't require Auth at all (i.e., public p

Re: [web2py] 'Auth' object has no attribute 'use_username'

2012-09-01 Thread Anthony
Many requests don't require Auth at all (i.e., public part of website). Yet generating the navbar still requires an Auth instance. Just for the navbar, though, there's no reason to define all the db tables. Likewise, even for parts of the site that require login, @auth.requires_login() does not

Re: [web2py] 'Auth' object has no attribute 'use_username'

2012-09-01 Thread Massimo Di Pierro
I agree. What I do not understand is why would anybody want to instantiate the auth object if the auth_* tables are not there. auth = Auth(db) ... auth.define_tables() in my mind are like: begin creating authentication logic end creating authentication logic If t

Re: [web2py] 'Auth' object has no attribute 'use_username'

2012-08-31 Thread Annet
> yet you have a > >{{=auth.navbar()}} in the layout. > Do you mean this line in layout.html? {{='auth' in globals() and auth.navbar() or ''}} Does appadmin need it? Or is it there for us to use in our views? In case of the latter I could remove this line without running into problems.

Re: [web2py] 'Auth' object has no attribute 'use_username'

2012-08-31 Thread Anthony
On Friday, August 31, 2012 3:11:20 PM UTC-4, Massimo Di Pierro wrote: > > what is the point of auth = Auth(db) in your code without having an > auth_user table? I must be missing something about what you are trying to > do. First, just to have the auth navbar appear on every page, it shouldn't

Re: [web2py] 'Auth' object has no attribute 'use_username'

2012-08-31 Thread Massimo Di Pierro
what is the point of auth = Auth(db) in your code without having an auth_user table? I must be missing something about what you are trying to do. On Friday, 31 August 2012 13:58:19 UTC-5, Anthony wrote: > > You cannot have a navbar without defining tables. This would never have >> worked and i

Re: [web2py] 'Auth' object has no attribute 'use_username'

2012-08-31 Thread Anthony
> > You cannot have a navbar without defining tables. This would never have > worked and it should not work. > Looks like it would be easy to make an alteration so navbar wouldn't require the auth tables to be defined. We could add an auth.settings.use_username setting and use it as an alterna

Re: [web2py] 'Auth' object has no attribute 'use_username'

2012-08-31 Thread Massimo Di Pierro
As stated before this is not a web2py 2.0.x issue. The problem is that you have auth =Auth() but you commented out auth.define_tables() yet you have a {{=auth.navbar()}} in the layout. You cannot have a navbar without defining tables. This would never have worked and it should not

Re: [web2py] 'Auth' object has no attribute 'use_username'

2012-08-31 Thread Annet
I encountered a similar issue: 'DAL' object has no attribute 'auth_user' Version web2py™ (2, 0, 3, datetime.datetime(2012, 8, 30, 21, 45, 50), 'stable') Python Python 2.6.1: /usr/bin/python2.6 Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. Traceback (most recent call last):

  1   2   3   >