mirror of
https://github.com/FAUSheppy/atlantis-event-dispatcher
synced 2026-06-19 05:12:38 +02:00
Compare commits
3 Commits
55cc4cfeef
...
d8fa3d5352
| Author | SHA1 | Date | |
|---|---|---|---|
| d8fa3d5352 | |||
| ebe082b43f | |||
| 5e5d74bb67 |
+3
-1
@@ -149,7 +149,7 @@ def webhooks():
|
||||
posted = WebHookPaths(username=user, path=secrets.token_urlsafe(20))
|
||||
db.session.merge(posted)
|
||||
db.session.commit()
|
||||
return ("", 204)
|
||||
return flask.jsonify({ "webhook-identity": posted.path})
|
||||
elif flask.request.method == "GET":
|
||||
webhooks = db.session.query(WebHookPaths).filter(WebHookPaths.username==user).all()
|
||||
if not webhooks:
|
||||
@@ -440,6 +440,7 @@ def create_app():
|
||||
|
||||
db.create_all()
|
||||
|
||||
app.config["LDAP_NO_READ_ENV"] = os.environ.get("LDAP_NO_READ_ENV") or app.config.get("LDAP_NO_READ_ENV")
|
||||
if not app.config.get("LDAP_NO_READ_ENV"):
|
||||
ldap_args = {
|
||||
"LDAP_SERVER" : os.environ["LDAP_SERVER"],
|
||||
@@ -448,6 +449,7 @@ def create_app():
|
||||
"LDAP_BASE_DN" : os.environ["LDAP_BASE_DN"]
|
||||
}
|
||||
app.config["LDAP_ARGS"] = ldap_args
|
||||
|
||||
app.config["SETTINGS_ACCESS_TOKEN"] = os.environ["SETTINGS_ACCESS_TOKEN"]
|
||||
app.config["DISPATCH_ACCESS_TOKEN"] = os.environ["DISPATCH_ACCESS_TOKEN"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user