simpleauth icon indicating copy to clipboard operation
simpleauth copied to clipboard

Provide a function that lists supported providers

Open x1ddos opened this issue 12 years ago • 0 comments

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

x1ddos avatar May 18 '13 07:05 x1ddos