-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding oauth configuration directives #171 (proycon/clam#93)
- Loading branch information
Showing
3 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,21 @@ | ||
README: "DO NOT EDIT THIS FILE, IT WILL BE OVERWRITTEN ON LAMACHINE UPDATE! Create your own base.config.yml instead and change clam_include in your LaMachine configuration" | ||
README: "DO NOT EDIT THIS FILE, IT WILL BE OVERWRITTEN ON LAMACHINE UPDATE! Create your own base.config.yml instead and change clam_include in your LaMachine configuration, OR set extra configuration options in clam_base_config" | ||
{% if "flat" in remote_services and remote_services.flat %} | ||
flaturl: "{{ remote_services.flat }}" | ||
{% elif webserver and ("flat" in services or "all" in services) %} | ||
flaturl: "{{ lm_base_url }}/flat" | ||
{% endif %} | ||
{% if oauth_client_id and oauth_client_secret and oauth_auth_url and oauth_token_url and oauth_userinfo_url %} | ||
oauth: true | ||
oauth_client_id: "{{ oauth_client_id }}" | ||
oauth_client_secret: "{{ oauth_client_secret }}" | ||
oauth_auth_url: "{{ oauth_auth_url }}" | ||
oauth_token_url: "{{ oauth_token_url }}" | ||
oauth_userinfo_url: "{{ oauth_userinfo_url }}" | ||
oauth_scope: {{ oauth_scope | to_json }} | ||
{% if oauth_revoke_url %} | ||
oauth_revoke_url: "{{ oauth_revoke_url }}" | ||
{% endif %} | ||
{% endif %} | ||
{% if clam_base_config %} | ||
{{ clam_base_config | to_yaml }} | ||
{% endif %} |