reviewboard oauth #4

Description

This reviewboard extension allows authentication via OAuth.

See https://bitbucket.org/ericsnowcurrently/rb_oauth_extension

Currently github is the only supported OAuth provider.


The reviewboard-oauth charm is subordinate to the reviewboard charm. In
particular, it modifies /var/www/reviewboard/conf/settings_local.py and
reloads reviewboard.

The charm installs the Python dist package from PyPI (using pip) and
registers the reviewboard extension. At some point it will also enable
the extension in reviewboard, but for now you must do that manually.

Config

The "provider-credentials" setting has a specific format:

:: [...]*

The provider is the lower-case name of a registered provider (for now
the only supported one is "github"). The app ID is the ID the provider
generated for you. The secret is the corresponding "key" the provider
gives you. More than one provider may be accommodated in
"provider-credentials" by specifying them with a space separating each
provider's credentials. See hooks/charm.py.

Currently settings are persisted by adding them to the reviewboard
instances settings_local.py. They may be later moved to reviewboard's
database.

Contributing

The code for the charm is officially maintained at:

https://bitbucket.org/ericsnowcurrently/rb_oauth_extension

and the bug tracker for the charm is:

https://bitbucket.org/ericsnowcurrently/rb_oauth_extension/issues

Other Notes

This charm is based loosely on the reviewboard charm:

https://manage.jujucharms.com/charms/precise/reviewboard.

Configuration

provider-credentials
(string) A space-separated list of <provider>:<ID>:<secret>.