Properly loading the OAUTH_BASE_URL variable

pull/134/head
Matheus Lima 2019-05-16 17:13:48 -03:00
parent a24c340838
commit 1f2d76e331
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,5 @@
import os
import requests
from selene.api import PublicEndpoint
@ -9,7 +11,7 @@ class OauthServiceEndpoint(PublicEndpoint):
def __init__(self):
super(OauthServiceEndpoint, self).__init__()
self.oauth_service_host = self.config['OAUTH_BASE_URL']
self.oauth_service_host = os.environ['OAUTH_BASE_URL']
def get(self, device_id, credentials, oauth_path):
with get_db_connection(self.config['DB_CONNECTION_POOL']) as db:

View File

@ -1,3 +1,5 @@
import os
import requests
from selene.api import PublicEndpoint
@ -7,7 +9,7 @@ class OauthCallbackEndpoint(PublicEndpoint):
def __init__(self):
super(OauthCallbackEndpoint, self).__init__()
self.oauth_service_host = self.config['OAUTH_BASE_URL']
self.oauth_service_host = os.environ['OAUTH_BASE_URL']
def get(self):
params = dict(self.request.args)