Setup for anonymous auth
This commit is contained in:
parent
e94fb0f68b
commit
2e2279603e
1 changed files with 13 additions and 0 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue