There always is multiple ways to solve a problem :p
--
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 t
This works perfectly,
as Richard said: Genius Idea
Truly amazing thinking.
Thanks Anthony.
p.s: you just inverted method and label in your for statement ( if someone
else wants to use this and get an error about str not being callable)
--
Resources:
- http://web2py.com
- http://web2py.com/boo
I'll try this,
--
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" g
The user should choose because he can have account on both server (and even
use the same credentials for both).
I will dig into the post you linked.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.c
It seems like no one has any clue about this..
I was thinking about modifying the code inside gluon.tools to use
enumerate() on the for loop parsing auth.settings.login_methods in order to
have an index of the auth_method that succeed and from here determine the
server.
I'm not quite sure wher
The answer is actually in your question. like I said I'm using the solution
2 and I need a way to determine which instance I'm talking to.
I'm using a boolean in my queries to assign the correct information but I
need a way to set the value of the boolean accordingly.
that's the only purpose of
The thing is we want to keep information from each server separated. so
solution 1 is not good for me.
I already use a variant of your option 2 where I grab the user credentials
on login and use it to query the server.
We have 2 servers, "test" and "prod" and we want to have one app to query
bot
ferents ldap servers...
>
> Richard
>
>
>
> On Tue, Dec 8, 2015 at 4:19 PM, Jonathan R >
> wrote:
>
>> I have two distinct sources of authentication ( 2 ldap servers) and I use
>> the credentials provided by the user to perform the query that gather
&
) which doesn't
seems to be able to do the job.
I hope I clarified the situation :p
On Tuesday, December 8, 2015 at 3:18:04 PM UTC-5, Richard wrote:
>
> :)
>
> For what...
>
>
>
> On Tue, Dec 8, 2015 at 2:18 PM, Jonathan R >
> wrote:
>
>> I need to have thi
login?? Maybe you can have a preference profile page for each user
> to them set there prefered way of login...
>
> Richard
>
> On Tue, Dec 8, 2015 at 10:56 AM, Jonathan R >
> wrote:
>
>> Yes I did, and nothing changed on the login screen, I still had None
>>
gt; Did you try by simply specify :
>>
>> Field('radio_button', ..., readable=True, writable=True)
>>
>
> ?
>
> Richard
>
> On Mon, Dec 7, 2015 at 5:19 PM, Jonathan R >
> wrote:
>
>> I successfully added the radio button i wanted on my lo
ps to add (couldn't locate the original auth
accepts process)
On Friday, December 4, 2015 at 4:45:52 PM UTC-5, Jonathan R wrote:
>
> Hi everyone,
> I'm trying to add a radio button on my login form to let the user decide
> which authentication method he wants to use.
>
&
Hi Richard,
I've seen people using this way to customize their registration page, they
could get the radio button to be displayed, I don't really see how the
login page is different and won't display it, I must miss something.
What "other thing" should I do in your opinion ?
thanks for your ti
Hi everyone,
I'm trying to add a radio button on my login form to let the user decide
which authentication method he wants to use.
I added a field in the auth_user table and i try to display the
corresponding radio button in my login page as follow:
in bd.py
[..]
auth.settings.extra_field
I'm not sure I was clear enough since there is no answer :p
I have 2 ldap server (A and B) and my web app is using both as
authentication entity
the login_method list in auth.settings is the following :
auth.settings.login_methods=[
auth_ldap(server one,options 1), auth_ldap(server two, options 2)
y.
>>
>> On a totally different path, you can subclass or make your own
>> login_method (mostly copy/pasting web2py's one) and append your queries to
>> it.
>>
>>
>> On Wednesday, November 18, 2015 at 9:20:34 PM UTC+1, Jonathan R wrote:
>>>
&
t;
> you can't really serialize a connection. you can serialize the plain
> password and then create a new one, using the credentials the user gave you.
>
> On Wednesday, November 18, 2015 at 7:54:56 PM UTC+1, Jonathan R wrote:
>>
>> Hi,
>> I'm still working
Hi,
I'm still working on an app connecting on a ldap server using the
credentials provided at login time by the user (in the webapp) and my
objective is to bind once to the ldap server right after login and use this
bind to make the different query requested by the user.
I bind using a custom f
Hi,
I'm currently using two sources for my authentication ( two different ldap
servers):
auth.settings.login_methods=[auth_ldap(server one,options 1),
auth_ldap(server two, options 2)]
My concern is to find out which one was successful when the user logged in
and store this information (usi
19 matches
Mail list logo