[web2py] Custom Auth module

2018-11-08 Thread Ben Duncan
I need to have a custom authentication module - mainly pointing to and using my own auth_user and auth_group tables Which modules from the base (welcome) do I need to change or what documentation do i need to read up on on how to do this ... Thanks *Ben Duncan* DBA / Chief Software Architect

[web2py] Custom auth Forms processing

2017-09-02 Thread Razvan Cristian
Hello all! How i can take control of the registration,login, etc forms? It is very important that I process the registration form ( i have an 'organization' table in db and based on some info the user enters on the registration page i should create corresponding organization entry and based on

[web2py] custom auth table email field set to unique=True accepts non unique values with different case.

2015-11-04 Thread arihant daga
In custom auth table even if email field is set to unique=true, if user inputs two different values different in case ex.( 'em...@gmail.com' and 'em...@gmail.com' ) it will accepts both and will store both of them in database. Hence enabling a user to signup with the same email id multiple

[web2py] Custom auth

2014-06-01 Thread zahar
Is it possible for auth_user table to consist of username password only apart for the auto generated id. In my situation the username which can be set by auth.define_tables(username=True), but the other fields in the auth_user table is not required. The reason is that I only need to dump the

Re: [web2py] Custom Auth

2014-05-27 Thread Brian M
Greg, I know this is an old thread, but did you ever come up with a solution? I've got an asp.Net app that I'd be nice to be able to authenticate against. Thanks Brian On Wednesday, October 9, 2013 9:22:07 PM UTC-5, GregD wrote: We have to use tables from sql server (aspnet_user and

[web2py] custom auth table that work in earlier version but not in recent version

2014-03-25 Thread 黄祥
hi, i have custom auth table that work in earlier version but not in recent version. e.g. create new application and then add this code *models/db.py* db._common_fields.append(auth.signature) # work if commented # create table : bank db.define_table('bank', Field('bank'), format =

[web2py] custom auth

2014-02-26 Thread Asimionese Alexandru
Hi folks, we have one table in database with users wich contains 3 fields, id, email, password. How can I use Auth object with this table without creating additional fields like registration_key, registration_id ?? actually I don't want to touch the tables because it's used by other

Re: [web2py] Custom Auth

2013-10-09 Thread GregD
We have to use tables from sql server (aspnet_user and aspnet_membership) for our authentication. So we've extended Auth like this from gluon.tools import Auth def MyNewAuth ... # we copied the Login method from Auth to here ... # use the following code to decipher the password from

Re: [web2py] Custom Auth

2013-10-09 Thread Vinicius Assef
Actually, you must understand Auth to extend it. Mainly to authenticate user and put its data on session (login). You don't need to make an Auth subclass, but compose a solution doing the same thing. Or you can think about login_bare, too. On Wed, Oct 9, 2013 at 11:22 PM, GregD

[web2py] Custom Auth

2013-10-08 Thread GregD
We created a form in the index controller to authenticate users to a database that utilize asp.net membership for authentication. However, we need to turn on Authentication for all forms now, but can't seem to do it since we didn't use the web2py built-in authentication mechanism. Is it

Re: [web2py] Custom Auth

2013-10-08 Thread Vinicius Assef
Web2py Auth is a class. You should extend it and in models/db.py you should have something like: auth = MyExtendedAuth() On Tue, Oct 8, 2013 at 2:54 PM, GregD gregory.do...@gadgroup.com wrote: We created a form in the index controller to authenticate users to a database that utilize asp.net

[web2py] custom auth table on separate file not in db.py

2013-02-14 Thread 黄祥
hi, is it possible to custom auth table on separate file not in db.py? for example : *models/db_wizard.py* # append fields : auth.signature db._common_fields.append(auth.signature) # custom auth user table auth.settings.extra_fields['auth_user']=[ Field('gender', 'list:string'),

[web2py] custom auth clarification

2012-09-11 Thread Dave
I am working on my own external authentication. From reading the source of gluon.tools and gluon.contrib.login_methods it appears I need a class that implements the following methods to do my own authentication: get_user() login_form() Then in my db.py just do an auth.settings.login_form =

[web2py] Custom auth field with dropdown in registration.

2012-08-21 Thread Rujaun Fourie
Hey guys! I have added a extra field in auth_user named account_type now I want that field to reference a table in the db called account_type and display the contents of that field in the registration as a dropdown. Here is what I did so far: db = DAL('mysql://***:@localhost/lion')

Re: [web2py] Custom auth field with dropdown in registration.

2012-08-21 Thread Khalil KHAMLICHI
try with : db.auth_user.requires = IS_IN_DB(db, 'account_type.*id*') On Tue, Aug 21, 2012 at 11:01 AM, Rujaun Fourie ruj...@googlemail.comwrote: Hey guys! I have added a extra field in auth_user named account_type now I want that field to reference a table in the db called account_type and

[web2py] Custom auth table, auth_membership insert failing in Admin

2012-07-11 Thread Jerry
Hello, I have a legacy MS SQL db with a User table with lots of old data: db3.define_table('People', Field('People_ID', 'id'), Field('LastName', length=50), Field('FirstName', length=50), migrate = False ) custom_auth_table = db3['People'] # tell Auth to use this table

[web2py] custom auth use email field instead of username

2010-09-15 Thread selecta
I have customized my auth table and allow via a configuration file to login via LDAP. If LDAP is enabled the username field should be used for login if LDAP is not enabled the email field should be used for logging in. Is this possible? looking into def login_bare() and def login() it seems like

[web2py] Custom auth view throws 404

2010-04-22 Thread scausten
Hi, Bit of a noob question (sorry) but I'd like to add a page /user/ combinedLogin to my app, which combines the login and register forms, but can't work it out. This: if request.args(0)==login: =auth.login() =auth.register() works fine, but I'd like to expose a new url

[web2py] Custom Auth Methods

2010-04-12 Thread Ishbir
Hey everyone, Is it possible to define custom auth methods and override the existing methods with our own? For e.g. I am making an application that authenticates against a remote website not the existing application. So, I just want to authenticate remotely and if it is successful, just get the