2015-09-14 - Re: [GRASE-Hotspot] Re: Reflect changes after changing group

Header Data

From: Timothy White <ti***8@gmail.com>
Message Hash: fce3dbd569b5d7321dda6ce6cb4711cbe4ab42b72d7e3488504e7869b14fed68
Message ID: <CAESLx0LHCf1QrQ454YK+bxQqg0p9SXU6oRvRgZs8vT4aXNWFoA@mail.gmail.com>
Reply To: <ce57460b-8bb0-463f-b0b9-912e0f86025d@grasehotspot.org>
UTC Datetime: 2015-09-14 02:20:20 UTC
Raw Date: Mon, 14 Sep 2015 19:20:20 +1000

Raw message

Hi Sheena

Sorry for the long delay

Can you share the code you are trying to do this with? It's hard to
debug problems with custom code, without the code. Your system should
work in theory, it sounds like you may be having permissions issues
with the chilli command. Instead of using the chilli command, you can
also use the JSON interface (http://coova.org/CoovaChilli/JSON) with
browser redirects to do your logon, logoff etc. The key being to
control where the user is redirected to after each step so you can
continue to control the flow.

It's a pain that facebook login doesn't use a different domain to
facebook itself, because then you could just add that to the walled
garden. I personally would go with the "free guest login" for 5
minutes, with a big bold button informing them to use the 5 minutes to
register via facebook. Once you have them registered with facebook,
then you give them a username and password for subsequent logins.

Regards

Tim

On Mon, Aug 3, 2015 at 8:22 PM, Sheena Arora <sh***2@gmail.com> wrote:
> Thanks Tim!!
>
> Actually I am trying to implement social login in which I stuck in 2 parts.
> Implementation goes as
> 1.User clicks on "login using facebook"
> 2. On clicking it , it will create temporary user( this user will be given
> 2min-2mb internet access i.e very limited access) and log in with it.
> 3. After this , user will be redirected to FB side where all the
> authentication is performed.
> 4. When user redirects back to grase, I want temporary user to logout and fb
> user(or some other id will be given to user) is logged in.
>
>
> Problem 1
> ========
> Creating temporary user: I call 'createUser()' php function (defined in
> admin side) to create a temporary user assigning it to a group which has
> limited access. and when control comes back , call to chilli 'logon' is made
> . It successfully creates a user and let it log in , but the same time when
> I refresh the browser , the temporary user get logged out .
>
> I am unable to understand this weird behaviour. Could you please help me in
> it that where am I doing wrong??
>
>
> Problem2
> =======
> The last step is temporary user logout and another user login [again inside
> the code]. I called chilli 'logoff' and after it 'logon' , but I am not able
> to login using new user.
>
> Eagerly waiting for your reply...
>
> On Friday, July 10, 2015 at 5:01:28 PM UTC+5:30, Sheena Arora wrote:
>>
>> Hi
>>
>> I was testing "changing group" option of Edit User feature. I have a
>> question that when I change the group from ,say group1 to group2, then the
>> changes get reflected after user logout and then login again[Assuming user
>> is currently logged in]
>>
>> If group1 has  some timeLimit and group2 has no timeLimit set  , and after
>> changing user's group from group1 to group2 [Or if I change TimeLimit of
>> that user to some other value as well] , I want him to stay logged in and
>> remain unaware about the change happened.
>>
>> Could it be possible for changes to take place immediately at user side?
>> If yes , then how can I achieve this?
>>
>>
>> Regards
>> Sheena Arora
>
> --
> This mailing list is for the Grase Hotspot Project http://grasehotspot.org
> ---
> You received this message because you are subscribed to the Google Groups
> "Grase Hotspot" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to gr***e@grasehotspot.org.
> To post to this group, send email to gr***t@grasehotspot.org.
> Visit this group at
> http://groups.google.com/a/grasehotspot.org/group/grase-hotspot/.
> To view this discussion on the web visit
> https://groups.google.com/a/grasehotspot.org/d/msgid/grase-hotspot/ce57460b-8bb0-463f-b0b9-912e0f86025d%40grasehotspot.org.


Thread