Closed #521. `je/42cc_7029` For QA: you can add something like the following to `LocalUserPreferencesProvider`:
:::python @expose() def add(self): return 'Hello!' def additional_urls(self): return [('add', self.add), ] Then go to `/auth/add` and you should see 'Hello!' there. --- ** [tickets:#7029] AuthProvider should be able to add routes to /auth/** **Status:** code-review **Labels:** 42cc **Created:** Mon Jan 06, 2014 11:10 PM UTC by Dave Brondsema **Last Updated:** Wed Jan 08, 2014 06:57 PM UTC **Owner:** nobody Some auth providers may want to add additional user configuration pages under `/auth/`. The `AuthenticationProvider` class already allows a lot of configuration, but can't add new url handling. We should extend it to have a new method which may return references to methods and/or controllers to add. Then `AuthController.__init__` can just loop through those and use `setattr()` to add them to itself. Default implementation should `return []` (so existing providers work fine) and have a docstring. --- Sent from sourceforge.net because allura-dev@incubator.apache.org is subscribed to https://sourceforge.net/p/allura/tickets/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/allura/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.