You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2020/09/08 08:37:41 UTC
[incubator-ponymail-foal] 06/10: add fetching github data from yaml
to config
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
commit 5de30b20bfe23aeba417df5b5427f7823ff106db
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Tue Sep 8 10:28:39 2020 +0200
add fetching github data from yaml to config
---
server/plugins/configuration.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/server/plugins/configuration.py b/server/plugins/configuration.py
index 24bda0b..458165e 100644
--- a/server/plugins/configuration.py
+++ b/server/plugins/configuration.py
@@ -17,10 +17,14 @@ class TaskConfig:
class OAuthConfig:
authoritative_domains: list
google_client_id: str
+ github_client_id: str
+ github_client_secret: str
def __init__(self, subyaml: dict):
self.authoritative_domains = subyaml.get('authoritative_domains', [])
self.google_client_id = subyaml.get('google_client_id', '')
+ self.github_client_id = subyaml.get('github_client_id', '')
+ self.github_client_secret = subyaml.get('github_client_secret', '')
class DBConfig: