Ruby on Rails Tuesday, January 31, 2012

On 31 January 2012 07:53, Marcin S <msporysz06@gmail.com> wrote:
> That would be second option.

Since you have top posted everyone will have to scroll down to see
which that is. I will repeat it here to make it easier for those
reading it:
>> prevent the user from logging in unless he uses a valid name/password configured for the db

The only way I can think of doing that is to attempt to connect to
re-connect to the db when he logs in, using his credentials, and see
if it successful.

Colin


>
> 2012/1/30 Colin Law <clanlaw@googlemail.com>:
>> On 30 January 2012 19:06, Marcin S <msporysz06@gmail.com> wrote:
>>> No, I think...
>>>
>>> Its like every db on server have its own set of permissions for
>>> different users ,right?
>>> And i want to authenticate user based on that permissions.
>>
>> Do you mean you want to connect to the database using the name and
>> password used by user to login, or do you want to prevent the user
>> from logging in unless he uses a valid name/password configured for
>> the db, or both?
>>
>> Colin
>>
>>>
>>>
>>>
>>> 2012/1/30 venkata reddy <venkatareddy.cs@gmail.com>:
>>>> What do you mean by database here, Do you need something like LDAP
>>>> authentication?
>>>>
>>>> On Jan 30, 10:25 pm, Marcin S <msporys...@gmail.com> wrote:
>>>>> I read README, and i don't see anywere it provides solution I need.
>>>>>
>>>>> Let me clarify, username and password combination must be same as
>>>>> DATABASE permission (set by db engine).
>>>>> It has nothing to to do with content on that database itself.
>>>>>
>>>>> 2012/1/30 Everaldo Gomes <everaldo.go...@gmail.com>:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> > Take a look at the devise gem:
>>>>>
>>>>> >https://github.com/plataformatec/devise
>>>>>
>>>>> > On Mon, Jan 30, 2012 at 2:36 PM, Marcin S <msporys...@gmail.com> wrote:
>>>>>
>>>>> >> Hello, Im trying to write a simple app  for company internal usage.
>>>>> >> The other applications we use (in php) authenticate users based on
>>>>> >> database credentials, and to be honest I have no idea how to implement
>>>>> >> this. Any suggestions will be great!
>>>>>
>>>>> >> --
>>>>> >> You received this message because you are subscribed to the Google Groups
>>>>> >> "Ruby on Rails: Talk" group.
>>>>> >> To post to this group, send email to rubyonrails-talk@googlegroups.com.
>>>>> >> To unsubscribe from this group, send email to
>>>>> >> rubyonrails-talk+unsubscribe@googlegroups.com.
>>>>> >> For more options, visit this group at
>>>>> >>http://groups.google.com/group/rubyonrails-talk?hl=en.
>>>>>
>>>>> > --
>>>>> > You received this message because you are subscribed to the Google Groups
>>>>> > "Ruby on Rails: Talk" group.
>>>>> > To post to this group, send email to rubyonrails-talk@googlegroups.com.
>>>>> > To unsubscribe from this group, send email to
>>>>> > rubyonrails-talk+unsubscribe@googlegroups.com.
>>>>> > For more options, visit this group at
>>>>> >http://groups.google.com/group/rubyonrails-talk?hl=en.
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
>>>> To post to this group, send email to rubyonrails-talk@googlegroups.com.
>>>> To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
>>>> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
>>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
>>> To post to this group, send email to rubyonrails-talk@googlegroups.com.
>>> To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
>>> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
>>>
>>
>>
>>
>> --
>> gplus.to/clanlaw
>>
>> --
>> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
>> To post to this group, send email to rubyonrails-talk@googlegroups.com.
>> To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
>> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
>

--
gplus.to/clanlaw

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment