1
0
Fork 0
mirror of synced 2024-11-22 17:05:34 -05:00

Setup for anonymous auth

This commit is contained in:
Filip Pytloun 2016-08-31 14:00:02 +02:00
parent e94fb0f68b
commit 2e2279603e

View file

@ -140,6 +140,18 @@ auto_assign_org_role = {{ server.get('users', {}).get('auto_assign_role', 'Viewe
#################################### Anonymous Auth ########################## #################################### Anonymous Auth ##########################
[auth.anonymous] [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 # enable anonymous access
;enabled = false ;enabled = false
@ -148,6 +160,7 @@ auto_assign_org_role = {{ server.get('users', {}).get('auto_assign_role', 'Viewe
# specify role for unauthenticated users # specify role for unauthenticated users
;org_role = Viewer ;org_role = Viewer
{%- endif %}
#################################### Github Auth ########################## #################################### Github Auth ##########################
[auth.github] [auth.github]