1
0
Fork 0
mirror of synced 2024-11-16 14:15:35 -05:00

add Generic OAuth

This commit is contained in:
Simon Schneider 2018-08-23 11:19:44 +02:00
parent 1ec7c893ee
commit b50640ff3c

View file

@ -191,6 +191,21 @@ org_name = {{ server.auth.get('role', server.auth.anonymous.role) }}
;api_url = https://www.googleapis.com/oauth2/v1/userinfo
;allowed_domains =
#################################### Generic OAuth ##########################
[auth.generic_oauth]
{%- if server.auth.engine == 'oauth' or server.auth.get('oauth', {}).get('enabled', False) %}
enabled = true
client_id = {{ server.auth.get('oauth', {}).get('client_id', 'YOUR_APP_CLIENT_ID') }}
client_secret = {{ server.auth.get('oauth', {}).get('client_secret', 'YOUR_APP_CLIENT_SECRET') }}
scopes = {{ server.auth.get('oauth', {}).get('scopes', '') }}
auth_url = {{ server.auth.get('oauth', {}).get('auth_url', '') }}
token_url = {{ server.auth.get('oauth', {}).get('token_url', '') }}
api_url = {{ server.auth.get('oauth', {}).get('api_url', '') }}
allowed_domains = {{ server.auth.get('oauth', {}).get('allowed_domains', '') }}
allow_sign_up = {{ server.auth.get('oauth', {}).get('allow_sign_up', 'true') }}
{%- endif %}
#################################### Auth Proxy ##########################
[auth.proxy]
{%- if server.auth.engine == 'proxy' or server.auth.get('proxy', {}).get('enabled', False) %}