mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 07:46:23 -04:00
Rename NOTIFY_API_URL to API_HOST_NAME.
The NOTIFY_API_URL will point to the alpha api.
This commit is contained in:
@@ -37,7 +37,7 @@ def register():
|
|||||||
role_id=1)
|
role_id=1)
|
||||||
users_dao.insert_user(user)
|
users_dao.insert_user(user)
|
||||||
|
|
||||||
user_api_client = UserApiClient(current_app.config['NOTIFY_API_URL'],
|
user_api_client = UserApiClient(current_app.config['API_HOST_NAME'],
|
||||||
current_app.config['ADMIN_CLIENT_USER_NAME'],
|
current_app.config['ADMIN_CLIENT_USER_NAME'],
|
||||||
current_app.config['ADMIN_CLIENT_SECRET'])
|
current_app.config['ADMIN_CLIENT_SECRET'])
|
||||||
try:
|
try:
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ class NotificationsAdminAPIClient(NotificationsAPIClient):
|
|||||||
"secret")
|
"secret")
|
||||||
|
|
||||||
def init_app(self, application):
|
def init_app(self, application):
|
||||||
self.base_url = application.config['NOTIFY_API_URL']
|
self.base_url = application.config['API_HOST_NAME']
|
||||||
self.client_id = application.config['NOTIFY_API_CLIENT']
|
self.client_id = application.config['NOTIFY_API_CLIENT']
|
||||||
self.secret = application.config['NOTIFY_API_SECRET']
|
self.secret = application.config['NOTIFY_API_SECRET']
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ class Config(object):
|
|||||||
SESSION_COOKIE_HTTPONLY = True
|
SESSION_COOKIE_HTTPONLY = True
|
||||||
SESSION_COOKIE_SECURE = True
|
SESSION_COOKIE_SECURE = True
|
||||||
|
|
||||||
NOTIFY_API_URL = os.getenv('NOTIFY_API_URL')
|
API_HOST_NAME = os.getenv('API_HOST_NAME')
|
||||||
NOTIFY_API_SECRET = os.getenv('NOTIFY_API_SECRET', "dev-secret")
|
NOTIFY_API_SECRET = os.getenv('NOTIFY_API_SECRET', "dev-secret")
|
||||||
NOTIFY_API_CLIENT = os.getenv('NOTIFY_API_CLIENT', "admin")
|
NOTIFY_API_CLIENT = os.getenv('NOTIFY_API_CLIENT', "admin")
|
||||||
|
|
||||||
@@ -41,7 +41,7 @@ class Config(object):
|
|||||||
|
|
||||||
class Development(Config):
|
class Development(Config):
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
NOTIFY_API_URL = 'http://localhost:6011'
|
API_HOST_NAME = 'http://localhost:6011'
|
||||||
ADMIN_CLIENT_USER_NAME = 'dev-notify-admin'
|
ADMIN_CLIENT_USER_NAME = 'dev-notify-admin'
|
||||||
ADMIN_CLIENT_SECRET = 'dev-notify-secret-key'
|
ADMIN_CLIENT_SECRET = 'dev-notify-secret-key'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user