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.
UserPreferencesProvider
might be slightly better thanAuthenticatonProvider
since this is more about additional preferences.Closed #521.
je/42cc_7029
For QA: you can add something like the following to
LocalUserPreferencesProvider
:Then go to
/auth/add
and you should see 'Hello!' there.