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/07 21:04:47 UTC

[incubator-ponymail-foal] 03/05: add a google client id config option for oauth

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 1e0584c02584afbe970cac084a1e1659e28f9d8b
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Mon Sep 7 23:01:44 2020 +0200

    add a google client id config option for oauth
---
 server/plugins/configuration.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/server/plugins/configuration.py b/server/plugins/configuration.py
index a622fdf..24bda0b 100644
--- a/server/plugins/configuration.py
+++ b/server/plugins/configuration.py
@@ -16,9 +16,12 @@ class TaskConfig:
 
 class OAuthConfig:
     authoritative_domains: list
+    google_client_id: str
 
     def __init__(self, subyaml: dict):
         self.authoritative_domains = subyaml.get('authoritative_domains', [])
+        self.google_client_id = subyaml.get('google_client_id', '')
+
 
 class DBConfig:
     hostname: str