Skip to content
This repository was archived by the owner on Apr 28, 2021. It is now read-only.

Commit 35fa580

Browse files
author
Philippe Cote-Boucher
committed
feat: graphql authentification
1 parent efdfd42 commit 35fa580

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

docker/Dockerfile_botfront

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ COPY rasa ./rasa
5454
RUN pip install .[sql]
5555

5656
# Install Rasa Addons
57-
RUN pip install -Iv rasa-addons==0.9.10
57+
RUN pip install -Iv rasa-addons==0.9.11
5858
# https://github.com/RasaHQ/rasa/issues/5196
5959
RUN pip uninstall -y gym
6060
RUN pip install -Iv gym==0.15.4

rasa/utils/botfront.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ async def get_config_via_graphql(bf_url, project_id):
4343
from sgqlc.endpoint.http import HTTPEndpoint
4444
import urllib.error
4545

46-
endpoint = HTTPEndpoint(bf_url)
46+
api_key = os.environ.get("API_KEY")
47+
headers = [{"Authorization": api_key}] if api_key else []
48+
endpoint = HTTPEndpoint(bf_url, *headers)
4749

4850
@auto_retry
4951
async def load():

rasa/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# this file will automatically be changed,
22
# do not add anything but the version number here!
33
__version__ = "1.7.1"
4-
__bf_patch__ = "-bf.2"
4+
__bf_patch__ = "-bf.3"

0 commit comments

Comments
 (0)