Use oauth-sync-enabled tokenserver, adjust config to match.

pull/119/head
Ryan Kelly 6 years ago committed by Ryan Kelly
parent 48c4a5b477
commit 2497ad5c27

@ -9,5 +9,5 @@ unittest2==1.1
zope.component==4.2.1
configparser==3.5
mozsvc==0.9
https://github.com/mozilla-services/tokenserver/archive/1.2.27.zip
https://github.com/mozilla-services/server-syncstorage/archive/1.6.12.zip
https://github.com/mozilla-services/tokenserver/archive/1.3.0.zip
https://github.com/mozilla-services/server-syncstorage/archive/1.6.13.zip

@ -116,6 +116,11 @@ def includeme(config):
issuer = urlparse(idp_config["auth_server_base_url"]).netloc
settings["browserid.trusted_issuers"] = [issuer]
settings["browserid.allowed_issuers"] = [issuer]
if "oauth.backend" not in settings:
settings["oauth.backend"] = "tokenserver.verifiers.RemoteOAuthVerifier"
# If an IdP was specified, use it for oauth verification.
if idp is not None:
settings["oauth.server_url"] = idp_config["oauth_server_base_url"]
if "loggers" not in settings:
# Default to basic logging config.
root_logger = logging.getLogger("")

Loading…
Cancel
Save