x1ddos / simpleauth

Simple authentication for Python on Google App Engine supporting OAuth 2.0, OAuth 1.0(a) and OpenID

Home Page:https://simpleauth.appspot.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Provide a function that lists supported providers

x1ddos opened this issue · comments

commented

Here's how it currently works:

# Map URLs to handlers
Route('/auth/<provider>',
         handler='handlers.AuthHandler:_simple_auth',
         name='auth_login'),
Route('/auth/<provider>/callback', 
         handler='handlers.AuthHandler:_auth_callback',
         name='auth_callback'),

Nice tip from @erichiggins:

Perhaps a convenience function could be written that simply supplies a list of
supported providers from the app's config file/dict. Then folks could make the above
route expression(s) programmatically.


Moved here from https://code.google.com/p/gae-simpleauth/issues/detail?id=5