[web2py] Re: Returning a token for Android app authentication

2017-04-20 Thread Dave S
On Thursday, April 20, 2017 at 2:57:44 AM UTC-7, Oasis Agano wrote: > > > The only challenge im facing is the needed customization on the W2P side > to allow the the app to login, and the route to use inside the mobile app > to pass the login credentials. > If someone can share a segment of

[web2py] Re: Returning a token for Android app authentication

2017-04-20 Thread Oasis Agano
The only challenge im facing is the needed customization on the W2P side to allow the the app to login, and the route to use inside the mobile app to pass the login credentials. If someone can share a segment of the code it can be helpful. Thanks. Oasis On Tuesday, April 18, 2017 at 12:25:38

[web2py] Re: Returning a token for Android app authentication

2017-04-17 Thread Dave S
On Monday, April 17, 2017 at 1:16:49 PM UTC-7, Oasis Agano wrote: > > You mean that it doesnt require modifying core Web2py code? or adding > other codes inside your controller? because what i want is actually logging > in and storing a token returned by w2p. > > It is already part of web2py

[web2py] Re: Returning a token for Android app authentication

2017-04-17 Thread Oasis Agano
You mean that it doesnt require modifying core Web2py code? or adding other codes inside your controller? because what i want is actually logging in and storing a token returned by w2p. On Monday, April 17, 2017 at 10:05:53 PM UTC+2, Dave S wrote: > > > > On Monday, April 17, 2017 at 4:18:48 AM

[web2py] Re: Returning a token for Android app authentication

2017-04-17 Thread Dave S
On Monday, April 17, 2017 at 4:18:48 AM UTC-7, Oasis Agano wrote: > > Hello, > Can someone create a web2pyslice explaining how to do it and what to > change in web2py gluon in order to connect an android native app to it. > 4 years later people(e.g: me, my colleagues...) are still facing the

[web2py] Re: Returning a token for Android app authentication

2017-04-17 Thread Oasis Agano
Hello, Can someone create a web2pyslice explaining how to do it and what to change in web2py gluon in order to connect an android native app to it. 4 years later people(e.g: me, my colleagues...) are still facing the same issue and i think it can be helpful to the community. kr, Oasis On

[web2py] Re: Returning a token for Android app authentication

2014-10-14 Thread Mark Li
Hey Mark, I did finish this, although it's been some time since I've looked into the code for the mobile-related stuff. Most of it still makes sense to me On Friday, October 10, 2014 1:31:09 PM UTC-7, Mark Graves wrote: Did you ever finish this? I implemented something similar. I'd love

[web2py] Re: Returning a token for Android app authentication

2014-10-10 Thread Mark Graves
Did you ever finish this? I implemented something similar. I'd love to collaborate and get a repo up for working with mobile devices with web2py as an app back end. On Sunday, January 6, 2013 11:43:05 AM UTC-6, dlypka wrote: If you mimic the same http traffic that a browser would generate,

[web2py] Re: Returning a token for Android app authentication

2013-01-06 Thread dlypka
If you mimic the same http traffic that a browser would generate, then of course you will get all the normal web2py functionality such as the session. The web2py session is usually stored in the database which means it can store a large amount of data without the size limits of cookie storage.

[web2py] Re: Returning a token for Android app authentication

2013-01-04 Thread Mark Li
Would it be necessary to connect to the same web2py session? To my understanding, connecting to the same session would be necessary if the session contained Auth information indicating whether or not a user was logged in. However, using auth.login_bare(), I only return a token on login

[web2py] Re: Returning a token for Android app authentication

2013-01-03 Thread Mark Li
I reviewed your code again and looked into the source code for web2py to see how web2py deals with session login cookies. For what I want to accomplish, I believe I have found a method which does not involved changing web2py source code. It's simpler and more straight forward for me to wrap my

[web2py] Re: Returning a token for Android app authentication

2013-01-03 Thread dlypka
But are you reconnecting to the same web2py session on each request? On Thursday, January 3, 2013 3:20:01 PM UTC-6, Mark Li wrote: I reviewed your code again and looked into the source code for web2py to see how web2py deals with session login cookies. For what I want to accomplish, I

Re: [web2py] Re: Returning a token for Android app authentication

2013-01-03 Thread Alec Taylor
On Fri, Jan 4, 2013 at 2:57 PM, dlypka dly...@gmail.com wrote: But are you reconnecting to the same web2py session on each request? That's how OAuth Providers work (for the most part) Would be good if we could create an OAuth Provider in web2py though… On Thursday, January 3, 2013 3:20:01

[web2py] Re: Returning a token for Android app authentication

2013-01-01 Thread Massimo Di Pierro
Perhaps this should go in a web2pyslice? On Monday, 31 December 2012 21:28:04 UTC-6, dlypka wrote: I developed a solution for this. I posted it here: https://groups.google.com/forum/?fromgroups=#!topic/web2py/YVYQHRJmcos Happy New Year! On Monday, December 31, 2012 4:38:40 PM UTC-6, Mark

[web2py] Re: Returning a token for Android app authentication

2013-01-01 Thread dlypka
Yes it is my New Year's Resolution to make time to put it in a Slice. On Tuesday, January 1, 2013 10:35:49 AM UTC-6, Massimo Di Pierro wrote: Perhaps this should go in a web2pyslice? On Monday, 31 December 2012 21:28:04 UTC-6, dlypka wrote: I developed a solution for this. I posted it

[web2py] Re: Returning a token for Android app authentication

2013-01-01 Thread Massimo Di Pierro
:-) On Tuesday, 1 January 2013 10:45:47 UTC-6, dlypka wrote: Yes it is my New Year's Resolution to make time to put it in a Slice. On Tuesday, January 1, 2013 10:35:49 AM UTC-6, Massimo Di Pierro wrote: Perhaps this should go in a web2pyslice? On Monday, 31 December 2012 21:28:04 UTC-6,

[web2py] Re: Returning a token for Android app authentication

2013-01-01 Thread Mark Li
Thanks for the responses, and Happy New Years to you guys too! dlypka, for your cookieless solution, it assumes that the client app can't store/extract tokens? In the Google Android link above, it says that both Android and iOS can read and extract the tokens/cookies. So when the Android app

[web2py] Re: Returning a token for Android app authentication

2013-01-01 Thread dlypka
I was not precisely calling from a native Android or native IOS app. I was using a PhoneGap client, which is different. It is looks like a web browser but is not a browser client. PhoneGap can only use HTML5 storage unless you write a native Android / IOS PhoneGap extension/plugin. So my

[web2py] Re: Returning a token for Android app authentication

2012-12-31 Thread dlypka
I developed a solution for this. I posted it here: https://groups.google.com/forum/?fromgroups=#!topic/web2py/YVYQHRJmcos Happy New Year! On Monday, December 31, 2012 4:38:40 PM UTC-6, Mark Li wrote: I am currently trying to authenticate users on an Android app to my Web2py application. I