I found all about what I needed... however, I have found that web2py
is not very well documented. We often have to open up the source
files. I hope this problem can be resolved in the future.

On Apr 13, 2:15 pm, Ishbir <ishbi...@gmail.com> wrote:
> Hmm.. yeah, that was kind of what I wanted; but isn't there any
> documentation to better illuminate the alternate authentication
> methods?
>
> On Apr 12, 8:16 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > auth.settings.actions_disabled.append('register')
>
> > Auth has a pluggable mechanism for alternate authentication methods.
> > Look into the examples in gluon/contrib/login_methods
>
> > perhaps you want one of these?
>
> > On Apr 12, 9:52 am, Ishbir <ishbi...@gmail.com> wrote:
>
> > > What are the return values and stuff? Which is the method used for
> > > logging the user in and out; also the method for registering, I want
> > > it to be disabled. Possible?
>
> > > On Apr 12, 5:59 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > > > Yes. Auth is a class. You can extend it
>
> > > > from gluon.tools import *
> > > > class MyAuth(Auth):
> > > >      def requires_login(self): .....
>
> > > > auth=MyAuth(globals(),db)
>
> > > > On Apr 12, 6:21 am, Ishbir <ishbi...@gmail.com> wrote:
>
> > > > > 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 user id and store it in session. I already have the code in C#
> > > > > to do it, am trying to make it into a web application. No user
> > > > > information in the db other than the user ID on that site.
>
> > > > > I only need help with remote authentication; I can scrape other stuff
> > > > > via regex. I should also be able to use @auth.requires_login()
> > > > > decorator so as to restrict the functions to the logged in users.
>
> > > > > Is it possible? If not, any way to implement it?


-- 
To unsubscribe, reply using "remove me" as the subject.

Reply via email to