1
0
Fork 0

Setup for anonymous auth

This commit is contained in:
Filip Pytloun 2016-08-31 14:00:02 +02:00
parent e94fb0f68b
commit 2e2279603e
1 changed files with 13 additions and 0 deletions

View File

@ -140,6 +140,18 @@ auto_assign_org_role = {{ server.get('users', {}).get('auto_assign_role', 'Viewe
#################################### Anonymous Auth ##########################
[auth.anonymous]
{%- if server.get('auth', {}).get('engine', None) == 'anonymous' %}
enabled = true
{%- if server.auth.organization is defined %}
org_name = {{ server.auth.organization }}
{%- endif %}
{%- if server.auth.role is defined %}
org_name = {{ server.auth.role }}
{%- endif %}
{%- else %}
# enable anonymous access
;enabled = false
@ -148,6 +160,7 @@ auto_assign_org_role = {{ server.get('users', {}).get('auto_assign_role', 'Viewe
# specify role for unauthenticated users
;org_role = Viewer
{%- endif %}
#################################### Github Auth ##########################
[auth.github]